Implement multi-dimension array initalizer.
Fix McCat/08-main test.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47286 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/init.c b/test/CodeGen/init.c
index 24f8874..f773b8b 100644
--- a/test/CodeGen/init.c
+++ b/test/CodeGen/init.c
@@ -1,7 +1,14 @@
 // RUN: clang -emit-llvm %s
-void f1()
-{
-	// Scalars in braces.
-	int a = { 1 };
-	int b = { 1, 2 };
+void f1() {
+  // Scalars in braces.
+  int a = { 1 };
+  int b = { 1, 2 };
+}
+
+void f2() {
+  int a[2][2] = { { 1, 2 }, { 3, 4 } };
+  int b[3][3] = { { 1, 2 }, { 3, 4 } };
+  int *c[2] = { &a[1][1], &b[2][2] };
+  int *d[2][2] = { {&a[1][1], &b[2][2]}, {&a[0][0], &b[1][1]} };
+  int *e[3][3] = { {&a[1][1], &b[2][2]}, {&a[0][0], &b[1][1]} };
 }