* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr68841.c
blob15a27e7dc382d97398ca05427f431f5ecd3b89da
1 static inline int
2 foo (int *x, int y)
4 int z = *x;
5 while (y > z)
6 z *= 2;
7 return z;
10 int
11 main ()
13 int i;
14 for (i = 1; i < 17; i++)
16 int j;
17 int k;
18 j = foo (&i, 7);
19 if (i >= 7)
20 k = i;
21 else if (i >= 4)
22 k = 8 + (i - 4) * 2;
23 else if (i == 3)
24 k = 12;
25 else
26 k = 8;
27 if (j != k)
28 __builtin_abort ();
30 return 0;