summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/flexible-array-init.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-18 22:23:55 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-18 22:23:55 +0000
commit1cba5fe1d153da2d2a7bb6c81867d0dbe1b854a3 (patch)
tree397ca622aa48dae6dd4203a32561544c8c605130 /clang/test/Sema/flexible-array-init.c
parente60ec0abca6c88802d08d58ca88284b0fda9a5f7 (diff)
downloadbcm5719-llvm-1cba5fe1d153da2d2a7bb6c81867d0dbe1b854a3.tar.gz
bcm5719-llvm-1cba5fe1d153da2d2a7bb6c81867d0dbe1b854a3.zip
Downgrade the "excess elements in initializer" errors to warnings *in
C*. They're required errors in C++. llvm-svn: 64964
Diffstat (limited to 'clang/test/Sema/flexible-array-init.c')
-rw-r--r--clang/test/Sema/flexible-array-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/flexible-array-init.c b/clang/test/Sema/flexible-array-init.c
index 909b856d171..fff5fee2afc 100644
--- a/clang/test/Sema/flexible-array-init.c
+++ b/clang/test/Sema/flexible-array-init.c
@@ -4,7 +4,7 @@ struct one {
int values[];
} x = {5, {1, 2, 3}};
-struct one x2 = { 5, 1, 2, 3 }; // expected-error{{excess elements in struct initializer}}
+struct one x2 = { 5, 1, 2, 3 }; // expected-warning{{excess elements in struct initializer}}
void test() {
struct one x3 = {5, {1, 2, 3}};
OpenPOWER on IntegriCloud