blob: de038f5487b5f552e1a6d078c69fc6a033c40598 [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3struct S; // expected-note{{forward declaration of 'struct S'}}
4typedef int FOO();
5
6@interface INTF
7{
8 struct F {} JJ;
9 int arr[]; // expected-error {{field has incomplete type}}
10 struct S IC; // expected-error {{field has incomplete type}}
11 struct T { // expected-note {{previous definition is here}}
12 struct T {} X; // expected-error {{nested redefinition of 'T'}}
13 }YYY;
14 FOO BADFUNC; // expected-error {{field 'BADFUNC' declared as a function}}
15 int kaka; // expected-note {{previous declaration is here}}
16 int kaka; // expected-error {{duplicate member 'kaka'}}
17 char ch[]; // expected-error {{field has incomplete type}}
18}
19@end