aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.unary/expr.unary.op
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-11 23:14:30 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-11 23:14:30 +0000
commit6dbba4fc128e2e2f5b26be996392bd32c0707f13 (patch)
tree39387293b950b16aa176d75fe9d5b3201e0b56e8 /test/CXX/expr/expr.unary/expr.unary.op
parent336c8f70ff961c5568de3b9c65fb0502843b7407 (diff)
Catch placeholder types in DefaultLvalueConversion
and DefaultFunctionArrayLvalueConversion. To prevent significant regression for should-this-be-a-call fixits, and to repair some such regression from the introduction of bound member placeholders, make those placeholder checks try to build calls appropriately. Harden the build-a-call logic while we're at it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.unary/expr.unary.op')
-rw-r--r--test/CXX/expr/expr.unary/expr.unary.op/p6.cpp6
1 files changed, 3 insertions, 3 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 30f8c54919..129a4f4e77 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,8 @@ 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}}
+ void 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?}}
}