1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct S; // expected-note{{forward declaration of 'struct S'}}
9 int arr[]; // expected-error {{flexible array member 'arr' with type 'int[]' is not at the end of class}}
10 struct S IC; // expected-error {{field has incomplete type}}
11 // expected-note@-1 {{next instance variable declaration is here}}
12 struct T { // expected-note {{previous definition is here}}
13 struct T {} X; // expected-error {{nested redefinition of 'T'}}
15 FOO BADFUNC; // expected-error {{field 'BADFUNC' declared as a function}}
16 int kaka; // expected-note {{previous declaration is here}}
17 int kaka; // expected-error {{duplicate member 'kaka'}}