Remove a FIXME. Replace a couple asserts with an appropriate error
diagnostic for illegal initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41889 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c
index 98387be..5eed259 100644
--- a/test/Sema/array-init.c
+++ b/test/Sema/array-init.c
@@ -1,5 +1,7 @@
// RUN: clang -parse-ast-check -pedantic %s
+extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}}
+
static int x, y, z;
static int ary[] = { x, y, z }; // expected-error{{initializer element is not constant}}
@@ -12,6 +14,8 @@
void func() {
int x = 1;
+ typedef int TInt = 1; // expected-error{{illegal initializer (only variables can be initialized)}}
+
int xComputeSize[] = { 1, 3, 5 };
int x3[x] = { 1, 2 }; // expected-error{{variable-sized object may not be initialized}}