Home | History | Annotate | Download | only in SemaObjC
      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 {{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
     20