summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/incomplete-decl.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-10 21:58:27 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-10 21:58:27 +0000
commit8145742349fd93b7f7e5ff0cccb71e92360bea72 (patch)
tree830ccb7b8b21c271f8949cee34099d9d6e79ebd9 /clang/test/Sema/incomplete-decl.c
parenta5c8e50ea6c4f7a85559540538e217e482ea695d (diff)
downloadbcm5719-llvm-8145742349fd93b7f7e5ff0cccb71e92360bea72.tar.gz
bcm5719-llvm-8145742349fd93b7f7e5ff0cccb71e92360bea72.zip
Partial fix for PR3310, concerning type-checking for tentative
definitions. We were rejecting tentative definitions of incomplete (which is bad), and now we don't. This fix is partial because we don't do the end-of-translation-unit initialization for tentative definitions that don't ever have any initializers specified. llvm-svn: 66584
Diffstat (limited to 'clang/test/Sema/incomplete-decl.c')
-rw-r--r--clang/test/Sema/incomplete-decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/incomplete-decl.c b/clang/test/Sema/incomplete-decl.c
index be52cfd7075..7ec436acce8 100644
--- a/clang/test/Sema/incomplete-decl.c
+++ b/clang/test/Sema/incomplete-decl.c
@@ -1,9 +1,9 @@
// RUN: clang -fsyntax-only -verify %s
-struct foo; // expected-note 4 {{forward declaration of 'struct foo'}}
+struct foo; // expected-note 3 {{forward declaration of 'struct foo'}}
void b; // expected-error {{variable has incomplete type 'void'}}
-struct foo f; // expected-error {{variable has incomplete type 'struct foo'}}
+struct foo f; // // FIXME: error because 'struct foo' is never defined
static void c; // expected-error {{variable has incomplete type 'void'}}
static struct foo g; // expected-error {{variable has incomplete type 'struct foo'}}
OpenPOWER on IntegriCloud