2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr65103-1.c
blob4e3a7a3a2bc6345364967af142699a64af2932f7
1 /* { dg-do compile { target ia32 } } */
2 /* { dg-require-effective-target pie } */
3 /* { dg-options "-O2 -fPIE" } */
4 /* { dg-final { scan-assembler-not "GOTOFF," } } */
6 typedef struct S
8 int a;
9 int sum;
10 int delta;
11 } S;
13 S gs;
14 int global_opt (int max)
16 while (gs.sum < max)
17 gs.sum += gs.delta;
18 return gs.a;