summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-expr-ambiguity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/decl-expr-ambiguity.cpp')
-rw-r--r--clang/test/SemaCXX/decl-expr-ambiguity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/decl-expr-ambiguity.cpp b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
index db845393cd0..0cc9d7e0558 100644
--- a/clang/test/SemaCXX/decl-expr-ambiguity.cpp
+++ b/clang/test/SemaCXX/decl-expr-ambiguity.cpp
@@ -33,11 +33,11 @@ void f() {
}
class C { };
-void fn(int(C)) { } // void fn(int(*fp)(C c)) { }
+void fn(int(C)) { } // void fn(int(*fp)(C c)) { } expected-note{{candidate function}}
// not: void fn(int C);
int g(C);
void foo() {
- fn(1); // expected-error {{incompatible type passing 'int', expected 'int (*)(class C)'}}
+ fn(1); // expected-error {{no matching function}}
fn(g); // OK
}
OpenPOWER on IntegriCloud