summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/overloaded-operator.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-04 00:28:46 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-04 00:28:46 +0000
commit6df859d85954df08e201fd4506f19b20c37d49e6 (patch)
tree477dec586085df1ffac32c357553ac0acc7085f5 /clang/test/SemaCXX/overloaded-operator.cpp
parent1710d59553e98d6c0d604a541d9119eb14dc49fc (diff)
downloadbcm5719-llvm-6df859d85954df08e201fd4506f19b20c37d49e6.tar.gz
bcm5719-llvm-6df859d85954df08e201fd4506f19b20c37d49e6.zip
Bound member function diagnostic - suggest no-args calls and note overload candidates
Still missing cases for templates, but this is a step in the right direction. Also omits suggestions that would be ambiguous (eg: void func(int = 0); + void func(float = 0); func;) llvm-svn: 183173
Diffstat (limited to 'clang/test/SemaCXX/overloaded-operator.cpp')
-rw-r--r--clang/test/SemaCXX/overloaded-operator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/overloaded-operator.cpp b/clang/test/SemaCXX/overloaded-operator.cpp
index d794850a392..bdb75a5e5f6 100644
--- a/clang/test/SemaCXX/overloaded-operator.cpp
+++ b/clang/test/SemaCXX/overloaded-operator.cpp
@@ -387,8 +387,8 @@ void test_lookup_through_using() {
namespace rdar9136502 {
struct X {
- int i();
- int i(int);
+ int i(); // expected-note{{possible target for call}}
+ int i(int); // expected-note{{possible target for call}}
};
struct Y {
@@ -397,7 +397,7 @@ namespace rdar9136502 {
void f(X x, Y y) {
y << x
- .i; // expected-error{{reference to non-static member function must be called}}
+ .i; // expected-error{{reference to non-static member function must be called; did you mean to call it with no arguments?}}
}
}
OpenPOWER on IntegriCloud