aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/array.c
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-10-26 17:44:44 +0000
committerDevang Patel <dpatel@apple.com>2007-10-26 17:44:44 +0000
commit636c3d04673da8c8605d7e45640a2ff7aec648f1 (patch)
treec233685701f337f92731e97e77e20908ab823fee /test/CodeGen/array.c
parent8e53e720b3d7c962e91138a130dbd5d6c2def0e5 (diff)
Codegen array initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/array.c')
-rw-r--r--test/CodeGen/array.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/array.c b/test/CodeGen/array.c
index dfbd10ddad..58efce7fd7 100644
--- a/test/CodeGen/array.c
+++ b/test/CodeGen/array.c
@@ -4,3 +4,11 @@ int f() {
int a[2];
a[0] = 0;
}
+
+int f2() {
+ int x = 0;
+ int y = 1;
+ int a[10] = { y, x, 2, 3};
+ int b[10] = { 2,4,x,6,y,8};
+ int c[5] = { 0,1,2,3};
+}