diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-02 01:05:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-02 01:05:10 +0000 |
commit | fd89bc825026e44c68a68db72d4012fd6752e70f (patch) | |
tree | 1a44d1628d544d8da60ac6b3cb9dcc1cc9568765 /test/Sema/array-init.c | |
parent | c822ff47d29eb3888796145dbc58d17f747a1e61 (diff) |
Fix PR2017 and silence some bogus errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-init.c')
-rw-r--r-- | test/Sema/array-init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index 849737e49e..56be42c695 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -126,8 +126,7 @@ void illegal() { { 6 }, }, }; - // FIXME: the following two errors are redundant - int a[][] = { 1, 2 }; // expected-error{{array has incomplete element type 'int []'}} expected-error{{variable has incomplete type 'int []'}} + int a[][] = { 1, 2 }; // expected-error{{array has incomplete element type 'int []'}} } typedef int AryT[]; @@ -159,7 +158,7 @@ void charArrays() char c3[5] = { "Hello" }; char c4[4] = { "Hello" }; //expected-warning{{initializer-string for char array is too long}} - int i3[] = {}; //expected-error{{at least one initializer value required to size array}} expected-error{{variable has incomplete type 'int []'}} expected-warning{{use of GNU empty initializer extension}} + int i3[] = {}; //expected-error{{at least one initializer value required to size array}} expected-warning{{use of GNU empty initializer extension}} } void variableArrayInit() { |