summaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/expr/expr.unary/expr.unary.op/p6.cpp')
-rw-r--r--test/CXX/expr/expr.unary/expr.unary.op/p6.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp b/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp
index 30f8c54919518..ac11940c80daa 100644
--- a/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp
+++ b/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp
@@ -29,8 +29,7 @@ bool b8 = !S(); //expected-error {{invalid argument type 'S'}}
namespace PR8181
{
- void f() { } // expected-note{{candidate function}}
- void f(char) { } // expected-note{{candidate function}}
- bool b = !&f; //expected-error {{cannot resolve overloaded function 'f' from context}}
-
+ bool f() { } // expected-note{{possible target for call}}
+ void f(char) { } // expected-note{{possible target for call}}
+ bool b = !&f; //expected-error {{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}}
}