diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-13 18:10:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-13 18:10:35 +0000 |
commit | cda2270217228e128893927e0be5e6581d1615d3 (patch) | |
tree | 4ae16d2079849f19777a705c54126a84417167d1 /clang/test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | |
parent | 1b282f9619f68a60d4b8f4dd0c68b0a07e1a1293 (diff) | |
download | bcm5719-llvm-cda2270217228e128893927e0be5e6581d1615d3.tar.gz bcm5719-llvm-cda2270217228e128893927e0be5e6581d1615d3.zip |
Allow calling an overloaded function set by taking the address of the
functions, e.g., (&f)(0). Fixes <rdar://problem/9803316>.
llvm-svn: 141877
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 | 5 |
1 files changed, 2 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 129a4f4e770..ac11940c80d 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,7 @@ bool b8 = !S(); //expected-error {{invalid argument type 'S'}} namespace PR8181 { - void f() { } // expected-note{{possible target for call}} + 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?}} - + bool b = !&f; //expected-error {{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} } |