gcc/testsuite/gcc.dg/torture/pr111336.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target lp64 } */ |
| 3 | |
| 4 | extern void abort (void); |
| 5 | int a, b; |
| 6 | long c = 3521733542; |
| 7 | int d[2]; |
| 8 | int e(int f, int g) { |
| 9 | if (f == 0) |
| 10 | return 0; |
| 11 | if (f > 200) |
| 12 | return 0; |
| 13 | if (g) |
| 14 | return 5 * f; |
| 15 | return 0; |
| 16 | } |
| 17 | int main() |
| 18 | { |
| 19 | int h = 0; |
| 20 | for (; e((int)c + 773233762, c + 60) + 773163185 + h < 2; h++) |
| 21 | d[h] = b; |
| 22 | if (a != 0) |
| 23 | abort (); |
| 24 | return 0; |
| 25 | } |