2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
struct S; // expected-note{{forward declaration of 'struct S'}}
|
|
|
|
typedef int FOO();
|
|
|
|
|
|
|
|
@interface INTF
|
|
|
|
{
|
|
|
|
struct F {} JJ;
|
|
|
|
int arr[]; // expected-error {{field has incomplete type}}
|
|
|
|
struct S IC; // expected-error {{field has incomplete type}}
|
|
|
|
struct T { // expected-note {{previous definition is here}}
|
2010-04-02 08:55:10 +00:00
|
|
|
struct T {} X; // expected-error {{nested redefinition of 'T'}}
|
2009-06-02 17:58:47 +00:00
|
|
|
}YYY;
|
|
|
|
FOO BADFUNC; // expected-error {{field 'BADFUNC' declared as a function}}
|
|
|
|
int kaka; // expected-note {{previous declaration is here}}
|
|
|
|
int kaka; // expected-error {{duplicate member 'kaka'}}
|
|
|
|
char ch[]; // expected-error {{field has incomplete type}}
|
|
|
|
}
|
|
|
|
@end
|