diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-01-30 22:26:29 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-01-30 22:26:29 +0000 |
| commit | d42a0fb41bee91ff78eb330b8e201d28744a0856 (patch) | |
| tree | 7e339f4415bcd3d0910160b12b10df660ea78339 /clang/test/CodeGen | |
| parent | c40931856201822e36e0d8a4cc9ade526315b803 (diff) | |
| download | bcm5719-llvm-d42a0fb41bee91ff78eb330b8e201d28744a0856.tar.gz bcm5719-llvm-d42a0fb41bee91ff78eb330b8e201d28744a0856.zip | |
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.
llvm-svn: 63435
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/globalinit.c | 1 | ||||
| -rw-r--r-- | clang/test/CodeGen/init.c | 1 | ||||
| -rw-r--r-- | clang/test/CodeGen/trunc-array-initializer.c | 3 | ||||
| -rw-r--r-- | clang/test/CodeGen/vector.c | 1 |
4 files changed, 0 insertions, 6 deletions
diff --git a/clang/test/CodeGen/globalinit.c b/clang/test/CodeGen/globalinit.c index 0f3e21a6caf..1bcb3e48f50 100644 --- a/clang/test/CodeGen/globalinit.c +++ b/clang/test/CodeGen/globalinit.c @@ -34,7 +34,6 @@ void booltest2() { // Scalars in braces. static int a = { 1 }; -static int b = { 1, 2 }; // References to enums. enum { diff --git a/clang/test/CodeGen/init.c b/clang/test/CodeGen/init.c index 9d18f0a767d..fa39ba6f5a0 100644 --- a/clang/test/CodeGen/init.c +++ b/clang/test/CodeGen/init.c @@ -2,7 +2,6 @@ void f1() { // Scalars in braces. int a = { 1 }; - int b = { 1, 2 }; } void f2() { diff --git a/clang/test/CodeGen/trunc-array-initializer.c b/clang/test/CodeGen/trunc-array-initializer.c deleted file mode 100644 index f397657f8f9..00000000000 --- a/clang/test/CodeGen/trunc-array-initializer.c +++ /dev/null @@ -1,3 +0,0 @@ -// RUN: clang -emit-llvm %s -o %t - -int ary[2] = { 1, 2, 3 }; diff --git a/clang/test/CodeGen/vector.c b/clang/test/CodeGen/vector.c index 366c9aafddc..528afdfe5e8 100644 --- a/clang/test/CodeGen/vector.c +++ b/clang/test/CodeGen/vector.c @@ -8,4 +8,3 @@ void f() __v4hi x = {1,2,3}; __v4hi y = {1,2,3,4}; -__v4hi z = {1,2,3,4,5}; |

