2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -emit-llvm %s -o %t
|
2007-08-21 06:37:10 +08:00
|
|
|
|
2009-07-26 05:26:53 +08:00
|
|
|
void f() {
|
2007-08-21 06:37:10 +08:00
|
|
|
int a[2];
|
|
|
|
a[0] = 0;
|
|
|
|
}
|
2007-10-27 01:44:44 +08:00
|
|
|
|
2009-07-26 05:26:53 +08:00
|
|
|
void f2() {
|
2007-10-27 01:44:44 +08:00
|
|
|
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};
|
|
|
|
}
|