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/init.c | |
| 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/init.c')
| -rw-r--r-- | clang/test/CodeGen/init.c | 1 |
1 files changed, 0 insertions, 1 deletions
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() { |

