blob: 0b401ea8190c27e22a65b4a2daad94f75ef32c82 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm %s -o %t
Chris Lattner7016a702007-08-20 22:37:10 +00002
Mike Stump24556362009-07-25 21:26:53 +00003void f() {
Chris Lattner7016a702007-08-20 22:37:10 +00004 int a[2];
5 a[0] = 0;
6}
Devang Patel636c3d02007-10-26 17:44:44 +00007
Mike Stump24556362009-07-25 21:26:53 +00008void f2() {
Devang Patel636c3d02007-10-26 17:44:44 +00009 int x = 0;
10 int y = 1;
11 int a[10] = { y, x, 2, 3};
12 int b[10] = { 2,4,x,6,y,8};
13 int c[5] = { 0,1,2,3};
14}