1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li 3*67e74705SXin Listruct S; // expected-note{{forward declaration of 'struct S'}} 4*67e74705SXin Litypedef int FOO(); 5*67e74705SXin Li 6*67e74705SXin Li@interface INTF 7*67e74705SXin Li{ 8*67e74705SXin Li struct F {} JJ; 9*67e74705SXin Li int arr[]; // expected-error {{field has incomplete type}} 10*67e74705SXin Li struct S IC; // expected-error {{field has incomplete type}} 11*67e74705SXin Li struct T { // expected-note {{previous definition is here}} 12*67e74705SXin Li struct T {} X; // expected-error {{nested redefinition of 'T'}} 13*67e74705SXin Li }YYY; 14*67e74705SXin Li FOO BADFUNC; // expected-error {{field 'BADFUNC' declared as a function}} 15*67e74705SXin Li int kaka; // expected-note {{previous declaration is here}} 16*67e74705SXin Li int kaka; // expected-error {{duplicate member 'kaka'}} 17*67e74705SXin Li char ch[]; // expected-error {{field has incomplete type}} 18*67e74705SXin Li} 19*67e74705SXin Li@end 20