2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr57097.c
blob2f0093840df51850519887c35d521fa1a8b6944e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fPIC" } */
3 extern double ad[], bd[], cd[], dd[];
4 extern long long all[], bll[], cll[], dll[];
6 int
7 main (int i, char **a)
9 bd[i] = i + 64;
10 if (i % 3 == 0)
12 cd[i] = i;
14 dd[i] = i / 2;
15 ad[i] = i * 2;
16 if (i % 3 == 1)
18 dll[i] = 127;
20 dll[i] = i;
21 cll[i] = i * 2;
22 switch (i % 3)
24 case 0:
25 bll[i] = i + 64;
27 all[i] = i / 2;
28 return 0;