1 // RUN: %llvmgcc %s -S -o -
3 // This tests all kinds of hard cases with initializers and
4 // array subscripts. This corresponds to PR487.
6 struct X
{ int a
[2]; };
9 static int i23
= (int) &(((struct X
*)0)->a
[1]);
13 int i
= (int) &( ((struct X
*)0) -> a
[1]);
17 int foo(int i
) { return bar(&Arr
[49])+bar(&Arr
[i
]); }
19 static const int *X
= &Arr
[49];
20 static int i23
= (int) &( ((struct X
*)0) -> a
[0]);