gcc/testsuite/gcc.dg/torture/pr91200.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | int printf (const char *, ...); |
| 4 | |
| 5 | char a; |
| 6 | int b, c, **d; |
| 7 | |
| 8 | int main () |
| 9 | { |
| 10 | int f = -128, *g, *h[2] = {0, 0}, i; |
| 11 | printf("0"); |
| 12 | if (a) |
| 13 | { |
| 14 | while (f > a) { |
| 15 | int *j = &i; |
| 16 | *j |= 0; |
| 17 | } |
| 18 | h[i] = &c; |
| 19 | } |
| 20 | if (h[1]) |
| 21 | { |
| 22 | int **k = &g; |
| 23 | *k = &f; |
| 24 | while (i) |
| 25 | { |
| 26 | int **l[] = {&g}; |
| 27 | } |
| 28 | int **m = &g; |
| 29 | *d = *m = &b; |
| 30 | } |
| 31 | return 0; |
| 32 | } |