aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/globalinit.c
blob: e94027c360922194e1bbd3c265c65ea62e4a1f51 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang -emit-llvm %s

int A[10] = { 1,2,3,4,5 };


extern int x[];
void foo() { x[0] = 1; }
int x[10];
void bar() { x[0] = 1; }