remove the "old" at&t style asmprinter. Unfortunately, most of the
[llvm/avr.git] / test / FrontendC / 2005-01-02-ConstantInits.c
blob735278e0f93033b988abc48b3fb72bf9570ff4e8
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]; };
8 int test() {
9 static int i23 = (int) &(((struct X *)0)->a[1]);
10 return i23;
13 int i = (int) &( ((struct X *)0) -> a[1]);
15 int Arr[100];
17 int foo(int i) { return bar(&Arr[49])+bar(&Arr[i]); }
18 int foo2(int i) {
19 static const int *X = &Arr[49];
20 static int i23 = (int) &( ((struct X *)0) -> a[0]);
21 int *P = Arr;
22 ++P;
23 return bar(Arr+i);