diff options
author | John McCall <rjmccall@apple.com> | 2011-10-11 23:14:30 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-11 23:14:30 +0000 |
commit | 50a2c2c19de5ec57b7dc7201637547cab5109aca (patch) | |
tree | bf60e7ea2281948b0df2cafa4772547c5ec79ad0 /clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | |
parent | 8d4f74a6b12bccc879b7ea44e9634d6c5c71f523 (diff) | |
download | bcm5719-llvm-50a2c2c19de5ec57b7dc7201637547cab5109aca.tar.gz bcm5719-llvm-50a2c2c19de5ec57b7dc7201637547cab5109aca.zip |
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.
llvm-svn: 141738
Diffstat (limited to 'clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp')
-rw-r--r-- | clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp b/clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp index 30f8c549195..129a4f4e770 100644 --- a/clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp +++ b/clang/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?}} } |