diff options
author | Steve Naroff <snaroff@apple.com> | 2008-01-18 20:40:52 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-01-18 20:40:52 +0000 |
commit | acb6fa6bea2dfcbe5b4e327e0b75d021b98078c4 (patch) | |
tree | 52d74bc3fc6d9f236a985cb9bbed12a871400e0b /clang/test/Sema/incomplete-decl.c | |
parent | 5c94cb35966482e3966735e7fa2018cd5fd42286 (diff) | |
download | bcm5719-llvm-acb6fa6bea2dfcbe5b4e327e0b75d021b98078c4.tar.gz bcm5719-llvm-acb6fa6bea2dfcbe5b4e327e0b75d021b98078c4.zip |
Sema::FinalizeDeclaratorGroup(): Tighten up the tentative definition rule when dealing with arrays.
Bug submitted by Eli.
llvm-svn: 46179
Diffstat (limited to 'clang/test/Sema/incomplete-decl.c')
-rw-r--r-- | clang/test/Sema/incomplete-decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/incomplete-decl.c b/clang/test/Sema/incomplete-decl.c index e342ab8b70c..047c24266e3 100644 --- a/clang/test/Sema/incomplete-decl.c +++ b/clang/test/Sema/incomplete-decl.c @@ -9,7 +9,11 @@ static struct foo g; // expected-error {{variable has incomplete type 'struct f extern void d; extern struct foo e; +int ary[]; +struct foo bary[]; // expected-error {{array has incomplete element type 'struct foo'}} + void func() { + int ary[]; // expected-error{{variable has incomplete type 'int []'}} void b; // expected-error {{variable has incomplete type 'void'}} struct foo f; // expected-error {{variable has incomplete type 'struct foo'}} } |