diff options
author | Steve Naroff <snaroff@apple.com> | 2008-08-10 15:20:13 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-08-10 15:20:13 +0000 |
commit | 84e37356d6377bd92d7858da68fc754fa4e0f9d9 (patch) | |
tree | 87e7c988517180be468ab55b43c088a99854739f /clang/test/Sema/tentative-decls.c | |
parent | b3dd1e0889fa8d41ed30620b37800d58228cba94 (diff) | |
download | bcm5719-llvm-84e37356d6377bd92d7858da68fc754fa4e0f9d9.tar.gz bcm5719-llvm-84e37356d6377bd92d7858da68fc754fa4e0f9d9.zip |
Sema::CheckForFileScopedRedefinitions(): Make sure tentative decls of incomplete array types are completed (and diagnosed properly).
llvm-svn: 54612
Diffstat (limited to 'clang/test/Sema/tentative-decls.c')
-rw-r--r-- | clang/test/Sema/tentative-decls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/tentative-decls.c b/clang/test/Sema/tentative-decls.c index 7a374e05533..288757af872 100644 --- a/clang/test/Sema/tentative-decls.c +++ b/clang/test/Sema/tentative-decls.c @@ -27,6 +27,10 @@ extern int i4; int (*pToArray)[]; int (*pToArray)[8]; +int redef[10]; +int redef[]; // expected-error{{previous definition is here}} +int redef[11]; // expected-error{{redefinition of 'redef'}} + void func() { extern int i1; // expected-error{{previous definition is here}} static int i1; // expected-error{{static declaration of 'i1' follows non-static declaration}} |