Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / infinite-loop.c
blob25037a2027ec53a5f4822da1724840a61bba62df
1 /* { dg-do link } */
2 /* { dg-options "-O2" } */
3 void link_error (void);
5 void __attribute__ ((noinline,noipa))
6 foo(int a)
8 int b = 0;
10 while (1)
12 if (!a)
13 break;
14 b = 1;
17 if (b != 0)
18 link_error ();
21 int
22 main()
24 foo (0);