gcc/testsuite/gcc.dg/torture/pr67121.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int a[6], b, c = 226, d, e, f; |
| 4 | signed char g; |
| 5 | |
| 6 | void |
| 7 | fn1 (int p1) |
| 8 | { |
| 9 | b = a[p1]; |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | a[0] = 1; |
| 16 | for (f = 0; f < 9; f++) |
| 17 | { |
| 18 | signed char h = c; |
| 19 | int i = 1; |
| 20 | g = h < 0 ? h : h >> i; |
| 21 | e = g; |
| 22 | for (d = 1; d; d = 0) |
| 23 | ; |
| 24 | } |
| 25 | fn1 (g >> 8 & 1); |
| 26 | |
| 27 | if (b != 0) |
| 28 | __builtin_abort (); |
| 29 | |
| 30 | return 0; |
| 31 | } |