diff options
Diffstat (limited to 'test/SemaCXX/anonymous-struct.cpp')
-rw-r--r-- | test/SemaCXX/anonymous-struct.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/anonymous-struct.cpp b/test/SemaCXX/anonymous-struct.cpp index 19a88d7..8a61041 100644 --- a/test/SemaCXX/anonymous-struct.cpp +++ b/test/SemaCXX/anonymous-struct.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s struct S { - S(); // expected-note {{because type 'S' has a user-declared constructor}} + S(); // expected-note {{because type 'S' has a user-provided default constructor}} }; struct { // expected-error {{anonymous structs and classes must be class members}} @@ -9,7 +9,7 @@ struct { // expected-error {{anonymous structs and classes must be class members struct E { struct { - S x; // expected-error {{anonymous struct member 'x' has a non-trivial constructor}} + S x; // expected-error {{anonymous struct member 'x' has a non-trivial constructor}} }; static struct { }; |