xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/anonymous-struct.cpp (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 struct S {
4   S();  // expected-note {{because type 'S' has a user-provided default constructor}}
5 };
6 
7 struct { // expected-error {{anonymous structs and classes must be class members}}
8 };
9 
10 struct E {
11   struct {
12     S x;  // expected-error {{anonymous struct member 'x' has a non-trivial constructor}}
13   };
14   static struct {
15   };
16 };
17