gcc/testsuite/gcc.dg/torture/pr106070.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | unsigned int a = 1; |
| 4 | int b = -1; |
| 5 | int c = 4; |
| 6 | unsigned long long d; |
| 7 | |
| 8 | void __attribute__((noipa)) |
| 9 | test (void) |
| 10 | { |
| 11 | for (int i = 0; i < c; i += 2) |
| 12 | d = a != (int) b ? (unsigned long long) b : (unsigned long long) a; |
| 13 | } |
| 14 | |
| 15 | int |
| 16 | main () |
| 17 | { |
| 18 | test (); |
| 19 | if (d != -1ULL) |
| 20 | __builtin_abort (); |
| 21 | return 0; |
| 22 | } |