gcc/testsuite/gcc.dg/torture/pr67470.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int a, b, *c, d, e; |
| 4 | |
| 5 | void abort (void); |
| 6 | |
| 7 | int |
| 8 | main () |
| 9 | { |
| 10 | int f, *g, **h = &g; |
| 11 | for (; b;) |
| 12 | { |
| 13 | c = &a; |
| 14 | for (e = 0; e < 1; e++) |
| 15 | *h = 0; |
| 16 | for (; d; d++) |
| 17 | if (f) |
| 18 | *c = 0; |
| 19 | else |
| 20 | { |
| 21 | *c = e = 0; |
| 22 | *h = &a; |
| 23 | } |
| 24 | |
| 25 | if (a && !g) |
| 26 | abort (); |
| 27 | |
| 28 | } |
| 29 | return 0; |
| 30 | } |