2008-01-18 08:39:39 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
void b; // expected-error {{variable has incomplete type 'void'}}
|
|
|
|
struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
|
|
|
|
|
|
|
|
static void c; // expected-error {{variable has incomplete type 'void'}}
|
|
|
|
static struct foo g; // expected-error {{variable has incomplete type 'struct foo'}}
|
|
|
|
|
|
|
|
extern void d;
|
|
|
|
extern struct foo e;
|
|
|
|
|
2008-01-19 04:40:52 +08:00
|
|
|
int ary[];
|
|
|
|
struct foo bary[]; // expected-error {{array has incomplete element type 'struct foo'}}
|
|
|
|
|
2008-01-18 08:39:39 +08:00
|
|
|
void func() {
|
2008-01-19 04:40:52 +08:00
|
|
|
int ary[]; // expected-error{{variable has incomplete type 'int []'}}
|
2008-01-18 08:39:39 +08:00
|
|
|
void b; // expected-error {{variable has incomplete type 'void'}}
|
|
|
|
struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
|
|
|
|
}
|