aboutsummaryrefslogtreecommitdiff
path: root/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
commit1055393814ac989727aa7437a5f3c3c44b4f83e5 (patch)
tree2ee8cf4463585c6c973fb743988987197fd4b976 /test/SemaCXX/nested-name-spec.cpp
parent36bc2c663f600e7c9dc1a800d36f16603ca3ea51 (diff)
Give nicer note when a member redeclaration has or lacks 'const'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/nested-name-spec.cpp')
-rw-r--r--test/SemaCXX/nested-name-spec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaCXX/nested-name-spec.cpp b/test/SemaCXX/nested-name-spec.cpp
index 8e73c3e2ed..e13030cc38 100644
--- a/test/SemaCXX/nested-name-spec.cpp
+++ b/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();
};