1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |
3 | struct S; // expected-note{{forward declaration of 'struct S'}} |
4 | typedef int FOO(); |
5 | |
6 | @interface INTF |
7 | { |
8 | struct F {} JJ; |
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'}} |
14 | }YYY; |
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'}} |
18 | char ch[]; |
19 | } |
20 | @end |
21 | |