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 | ee697e69a2063b65bfd0534248e4848461aca3f4 (patch) | |
tree | b25eb10f27dc58fa87188115c16a38d5885734a7 /test/CXX/expr/expr.unary/expr.unary.op/p6.cpp | |
parent | 2f7aa998c0d6494301c12c4fceb6134a1bc248ab (diff) |
Allow calling an overloaded function set by taking the address of the
functions, e.g., (&f)(0). Fixes <rdar://problem/9803316>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141877 91177308-0d34-0410-b5e6-96231b3b80d8
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.cpp | 5 |
1 files changed, 2 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 129a4f4e77..ac11940c80 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{{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?}} } |