pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git] / test / FrontendC / pr4349.c
blob890482ea06a57177047342bddd8b0b6c6210eab4
1 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {\\\[2 x \\\[2 x i8\\\]\\\]}
2 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {, i\[\[:digit:\]\]\\+ 1)} | count 1
3 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {\\\[2 x i16\\\]}
4 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {, i\[\[:digit:\]\]\\+ 1)} | count 1
5 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars4 | grep {\\\[2 x \\\[2 x i8\\\]\\\]} | count 1
6 // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars4 | grep {, i\[\[:digit:\]\]\\+ 1, i\[\[:digit:\]\]\\+ 1)} | count 1
7 // PR 4349
9 union reg
11 unsigned char b[2][2];
12 unsigned short w[2];
13 unsigned int d;
15 struct cpu
17 union reg pc;
19 extern struct cpu cpu;
20 struct svar
22 void *ptr;
24 struct svar svars1[] =
26 { &((cpu.pc).w[0]) }
28 struct svar svars2[] =
30 { &((cpu.pc).b[0][1]) }
32 struct svar svars3[] =
34 { &((cpu.pc).w[1]) }
36 struct svar svars4[] =
38 { &((cpu.pc).b[1][1]) }