gcc/testsuite/gcc.c-torture/execute/pr71631.c
raw| 1 | /* PR tree-optimization/71631 */ |
| 2 | |
| 3 | volatile char v; |
| 4 | int a = 1, b = 1, c = 1; |
| 5 | |
| 6 | void |
| 7 | foo (const char *s) |
| 8 | { |
| 9 | while (*s++) |
| 10 | v = *s; |
| 11 | } |
| 12 | |
| 13 | int |
| 14 | main () |
| 15 | { |
| 16 | volatile int d = 1; |
| 17 | volatile int e = 1; |
| 18 | int f = 1 / a; |
| 19 | int g = 1U < f; |
| 20 | int h = 2 + g; |
| 21 | int i = 3 % h; |
| 22 | int j = e && b; |
| 23 | int k = 1 == c; |
| 24 | int l = d != 0; |
| 25 | short m = (short) (-1 * i * l); |
| 26 | short x = j * (k * m); |
| 27 | if (i == 1) |
| 28 | foo ("AB"); |
| 29 | if (x != -1) |
| 30 | __builtin_abort (); |
| 31 | return 0; |
| 32 | } |