OSDN Git Service

PR middle-end/51761
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / 20020927-1.c
1 /* PR optimization/7520 */
2 /* ICE at -O3 on x86 due to register life problems caused by
3    the return-without-value in bar.  */
4
5 int
6 foo ()
7 {
8   int i;
9   long long int j;
10
11   while (1)
12     {
13       if (j & 1)
14         ++i;
15       j >>= 1;
16       if (j)
17         return i;
18     }
19 }
20
21 int
22 bar ()
23 {
24   if (foo ())
25     return;
26 }