summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/array-init.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-02 01:05:10 +0000
committerChris Lattner <sabre@nondot.org>2008-04-02 01:05:10 +0000
commit81cb9e8637876697d0cb73449b9c9f111cf0eb83 (patch)
tree64c847d6d9fea9dc20f673862f53cae9103944b5 /clang/test/Sema/array-init.c
parent9b94b178068f460fbedc4da64b4f3ede8ec0e011 (diff)
downloadbcm5719-llvm-81cb9e8637876697d0cb73449b9c9f111cf0eb83.tar.gz
bcm5719-llvm-81cb9e8637876697d0cb73449b9c9f111cf0eb83.zip
Fix PR2017 and silence some bogus errors.
llvm-svn: 49068
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r--clang/test/Sema/array-init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c
index 849737e49e6..56be42c695f 100644
--- a/clang/test/Sema/array-init.c
+++ b/clang/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() {
OpenPOWER on IntegriCloud