gcc/testsuite/gcc.dg/tree-ssa/pr111583-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-Os" } */ |
| 3 | |
| 4 | short a, f, i; |
| 5 | static const int *e; |
| 6 | short *g; |
| 7 | long h; |
| 8 | int main() |
| 9 | { |
| 10 | { |
| 11 | unsigned j = i; |
| 12 | a = 1; |
| 13 | for (; a; a++) { |
| 14 | { |
| 15 | __INTPTR_TYPE__ b = j, d = h; |
| 16 | int c = 0; |
| 17 | while (d--) |
| 18 | *(char *)b++ = c; |
| 19 | } |
| 20 | if (e) |
| 21 | break; |
| 22 | } |
| 23 | j && (*g)--; |
| 24 | const int **k = &e; |
| 25 | *k = 0; |
| 26 | } |
| 27 | if (f != 0) |
| 28 | __builtin_abort (); |
| 29 | return 0; |
| 30 | } |