OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20000717-4.c
1 /* Extracted from gas.  Incorrectly generated non-pic code at -O0 for
2    IA-64, which produces linker errors on some operating systems.  */
3
4 struct
5 {
6   int offset;
7   struct slot
8   {
9     int field[6];
10   }
11   slot[4];
12 } s;
13
14 int
15 x ()
16 {
17   int toggle = 0;
18   int r = s.slot[0].field[!toggle];
19   return r;
20 }
21
22 int
23 main ()
24 {
25   return 0;
26 }