diff options
Diffstat (limited to 'test/SemaCXX/overload-decl.cpp')
-rw-r--r-- | test/SemaCXX/overload-decl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/SemaCXX/overload-decl.cpp b/test/SemaCXX/overload-decl.cpp index fdb14cb..1201396 100644 --- a/test/SemaCXX/overload-decl.cpp +++ b/test/SemaCXX/overload-decl.cpp @@ -30,10 +30,8 @@ class X { static void g(int); // expected-error {{static and non-static member functions with the same parameter types cannot be overloaded}} static void g(float); // expected-error {{class member cannot be redeclared}} - void h(); // expected-note {{previous declaration is here}} \ - expected-note {{previous declaration is here}} - void h() __restrict; // expected-error {{class member cannot be redeclared}} \ - expected-error {{conflicting types for 'h'}} + void h(); // expected-note {{previous declaration is here}} + void h() __restrict; // expected-error {{class member cannot be redeclared}} }; int main() {} // expected-note {{previous definition is here}} |