Corrected date in changelog
[official-gcc.git] / gcc / testsuite / gcc.dg / pr81979.c
blob4ac9addbc04e8d6a2b432a0564eeaea65c03da6e
1 /* PR target/81979 */
2 /* { dg-do link } */
3 /* { dg-options "-O2 -w" } */
4 /* { dg-additional-options "-fPIC" { target fpic } } */
5 /* { dg-additional-options "-freorder-blocks-and-partition" { target freorder } } */
7 int d;
9 __attribute__((noinline, noclone)) void
10 foo (int x)
12 int c;
13 while (c < 1)
15 int o;
16 for (o = 0; o < 4; ++o)
17 c /= (x != 0) ? 2 : x;
20 d = 1;
21 for (;;)
25 int
26 main ()
28 asm volatile ("" : : "r" (&d) : "memory");
29 foo (d);
30 asm volatile ("" : : "r" (&d) : "memory");
31 return 0;