summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/nested-name-spec.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2011-10-10 18:01:37 +0000
committerKaelyn Uhrain <rikka@google.com>2011-10-10 18:01:37 +0000
commit1a6eb99d45e554ea5431d49c5cbcab4fc3d9f70e (patch)
treed89d48c4f477cadc4f51a8bf433ce1959ff3dc5e /clang/test/SemaCXX/nested-name-spec.cpp
parent7571ba7015d18d715f686f8a4163c1ef412694a5 (diff)
downloadbcm5719-llvm-1a6eb99d45e554ea5431d49c5cbcab4fc3d9f70e.tar.gz
bcm5719-llvm-1a6eb99d45e554ea5431d49c5cbcab4fc3d9f70e.zip
Give nicer note when a member redeclaration has or lacks 'const'
llvm-svn: 141555
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
-rw-r--r--clang/test/SemaCXX/nested-name-spec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp
index 8e73c3e2ed3..e13030cc38a 100644
--- a/clang/test/SemaCXX/nested-name-spec.cpp
+++ b/clang/test/SemaCXX/nested-name-spec.cpp
@@ -27,10 +27,10 @@ int A::C::cx = 17;
static int A::C::cx2 = 17; // expected-error{{'static' can}}
class C2 {
- void m(); // expected-note{{member declaration nearly matches}}
+ void m(); // expected-note{{member declaration does not match because it is not const qualified}}
void f(const int& parm); // expected-note{{type of 1st parameter of member declaration does not match definition ('const int &' vs 'int')}}
- void f(int) const; // expected-note{{member declaration nearly matches}}
+ void f(int) const; // expected-note{{member declaration does not match because it is const qualified}}
void f(float);
int x;
@@ -121,7 +121,7 @@ namespace E {
class Operators {
- Operators operator+(const Operators&) const; // expected-note{{member declaration nearly matches}}
+ Operators operator+(const Operators&) const; // expected-note{{member declaration does not match because it is const qualified}}
operator bool();
};
OpenPOWER on IntegriCloud