summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-20 05:25:56 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-20 05:25:56 +0000
commitd0e48ea6823a579ac4d67787874a432fd7af3382 (patch)
tree0da4e48ec8e3ddaac115e5cf4cd35019fdfa3363 /clang/test
parent37a186d76568fa1b5a6fc6a79f653f2067cc9ca9 (diff)
downloadbcm5719-llvm-d0e48ea6823a579ac4d67787874a432fd7af3382.tar.gz
bcm5719-llvm-d0e48ea6823a579ac4d67787874a432fd7af3382.zip
Be a bit more defensive in SemaInit.
llvm-svn: 51301
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/compound-literal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/compound-literal.c b/clang/test/Sema/compound-literal.c
index 3a4192260bf..80dd370962a 100644
--- a/clang/test/Sema/compound-literal.c
+++ b/clang/test/Sema/compound-literal.c
@@ -25,4 +25,5 @@ struct Incomplete;
struct Incomplete* I1 = &(struct Incomplete){1, 2, 3}; // -expected-error {{variable has incomplete type}}
void IncompleteFunc(unsigned x) {
struct Incomplete* I2 = (struct foo[x]){1, 2, 3}; // -expected-error {{variable-sized object may not be initialized}}
+ (void){1,2,3}; // -expected-error {{variable has incomplete type}}
}
OpenPOWER on IntegriCloud