Upgrade the "excess elements in array initializer" warning to an
error, since both C99 and C++ consider it an error. For reference, GCC
makes this a warning while G++ makes it an error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63435 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/vector-init.c b/test/Sema/vector-init.c
index 6913082..e2a00b1 100644
--- a/test/Sema/vector-init.c
+++ b/test/Sema/vector-init.c
@@ -9,7 +9,7 @@
int array_sizecheck[(sizeof(array) / sizeof(float4)) == 3? 1 : -1];
float4 array2[2] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0,
- 9.0 }; // expected-warning {{excess elements in array initializer}}
+ 9.0 }; // expected-error {{excess elements in array initializer}}
float4 array3[2] = { {1.0, 2.0, 3.0}, 5.0, 6.0, 7.0, 8.0,
- 9.0 }; // expected-warning {{excess elements in array initializer}}
+ 9.0 }; // expected-error {{excess elements in array initializer}}