gcc/testsuite/gcc.dg/torture/pr115701.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* IPA PTA disables local PTA recompute after IPA. */ |
| 3 | /* { dg-additional-options "-fipa-pta" } */ |
| 4 | |
| 5 | int a, c, d; |
| 6 | static int b; |
| 7 | int main() |
| 8 | { |
| 9 | int *e = &a, **f = &e; |
| 10 | while (1) { |
| 11 | int **g, ***h = &f; |
| 12 | if (c) |
| 13 | *g = e; |
| 14 | else if (!b) |
| 15 | break; |
| 16 | *e = **g; |
| 17 | e = &d; |
| 18 | } |
| 19 | if (e != &a) |
| 20 | __builtin_abort(); |
| 21 | return 0; |
| 22 | } |