summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/flexible-array-init.c
diff options
context:
space:
mode:
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