diff options
Diffstat (limited to 'test/CXX/class/class.mem/p14.cpp')
-rw-r--r-- | test/CXX/class/class.mem/p14.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CXX/class/class.mem/p14.cpp b/test/CXX/class/class.mem/p14.cpp index 72b232e..3f14099 100644 --- a/test/CXX/class/class.mem/p14.cpp +++ b/test/CXX/class/class.mem/p14.cpp @@ -9,8 +9,9 @@ struct X0 { }; struct X1 { - int X1; - X1(); // expected-error{{declarator requires an identifier}} + int X1; // expected-note{{hidden by a non-type declaration of 'X1' here}} + X1(); // expected-error{{must use 'struct' tag to refer to type 'X1' in this scope}} \ + // expected-error{{expected member name or ';' after declaration specifiers}} }; struct X2 { |