gcc/testsuite/gcc.dg/torture/pr111383.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target int32plus } */ |
| 3 | |
| 4 | extern void abort (void); |
| 5 | int a, d = 1625015426; |
| 6 | char e; |
| 7 | short b; |
| 8 | short *f = &b, *g = &b; |
| 9 | void h(char *k) { |
| 10 | char c = *k; |
| 11 | for (; c;) |
| 12 | ; |
| 13 | } |
| 14 | int main() |
| 15 | { |
| 16 | *g = 25330; |
| 17 | int i, j; |
| 18 | i = 0; |
| 19 | for (; *f + d - 1625040257 < 7;) |
| 20 | ; |
| 21 | for (; i < 4; i++) { |
| 22 | j = 0; |
| 23 | for (; (d - 1625015511) + (d - 1625015341) + j < 1; j++) |
| 24 | h(&e); |
| 25 | } |
| 26 | if (a != 0) |
| 27 | abort (); |
| 28 | return 0; |
| 29 | } |