gcc/testsuite/gcc.dg/tree-ssa/pr107273-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O3" } */ |
| 3 | |
| 4 | int printf(const char *, ...); |
| 5 | int a[1] = {1}; |
| 6 | short b, c = 5500; |
| 7 | int d; |
| 8 | long e; |
| 9 | char f = 1; |
| 10 | int main() { |
| 11 | while (1) { |
| 12 | long g = b < 1; |
| 13 | e = g; |
| 14 | break; |
| 15 | } |
| 16 | for (; f; f--) { |
| 17 | if (e) { |
| 18 | d = -(6L | -(c & 1000)); |
| 19 | } |
| 20 | char h = d; |
| 21 | if (b) |
| 22 | b = 0; |
| 23 | if (d < 200) |
| 24 | while (1) |
| 25 | printf("%d", a[c]); |
| 26 | short i = h * 210; |
| 27 | c = i; |
| 28 | } |
| 29 | return 0; |
| 30 | } |
| 31 |