aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/class.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-10-01 21:19:28 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-10-01 21:19:28 +0000
commitc71d8eb6592ae3ef498fc57db3563d1dfae48dff (patch)
tree3cf931c055bb27174ea86352f7ba2a0a735d13d1 /test/SemaCXX/class.cpp
parentdb1314e3ef76f38de07f1b3c7cdc1100a0678931 (diff)
Better diagnostic for superfluous scope specifier inside a class definition for member functions. + Fixit.
Example: class A { void A::foo(); //warning: extra qualification on member 'foo' }; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/class.cpp')
-rw-r--r--test/SemaCXX/class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/class.cpp b/test/SemaCXX/class.cpp
index ad0792c9c4..7c6a62f41e 100644
--- a/test/SemaCXX/class.cpp
+++ b/test/SemaCXX/class.cpp
@@ -117,7 +117,7 @@ struct C4 {
struct S
{
void f(); // expected-note 1 {{previous declaration}}
- void S::f() {} // expected-error {{class member cannot be redeclared}} expected-note {{previous declaration}} expected-note {{previous definition}}
+ void S::f() {} // expected-warning {{extra qualification on member}} expected-error {{class member cannot be redeclared}} expected-note {{previous declaration}} expected-note {{previous definition}}
void f() {} // expected-error {{class member cannot be redeclared}} expected-error {{redefinition}}
};