diff options
Diffstat (limited to 'clang/test/Sema/incomplete-decl.c')
-rw-r--r-- | clang/test/Sema/incomplete-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/incomplete-decl.c b/clang/test/Sema/incomplete-decl.c index c4183ca72fa..eb93e8e3803 100644 --- a/clang/test/Sema/incomplete-decl.c +++ b/clang/test/Sema/incomplete-decl.c @@ -11,7 +11,7 @@ static struct foo g; // expected-error {{variable has incomplete type 'struct f extern void d; extern struct foo e; -int ary[]; +int ary[]; // expected-warning {{tentative array definition assumed to have one element}} struct foo bary[]; // expected-error {{array has incomplete element type 'struct foo'}} void func() { @@ -20,7 +20,7 @@ void func() { struct foo f; // expected-error {{variable has incomplete type 'struct foo'}} } -int h[]; +int h[]; // expected-warning {{tentative array definition assumed to have one element}} int (*i)[] = &h+1; // expected-error {{arithmetic on pointer to incomplete type 'int (*)[]'}} struct bar j = {1}; // expected-error {{variable has incomplete type 'struct bar'}} \ |