gcc/testsuite/gcc.dg/torture/pr117226.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target int32 } */ |
| 3 | /* { dg-additional-options "-fno-tree-forwprop" } */ |
| 4 | |
| 5 | int a = 128, b, d; |
| 6 | long e = -2, c; |
| 7 | int main() { |
| 8 | signed char f = a; |
| 9 | int g = f; |
| 10 | c = (g < 0) - e; |
| 11 | unsigned char h = g; |
| 12 | b = h % c; |
| 13 | d = 9000000000000 << b; |
| 14 | if (d > 1) |
| 15 | __builtin_abort(); |
| 16 | return 0; |
| 17 | } |