gcc/testsuite/gcc.c-torture/execute/pr105984.c
raw| 1 | /* PR tree-optimization/105984 */ |
| 2 | |
| 3 | unsigned long long g; |
| 4 | |
| 5 | static inline unsigned long long |
| 6 | foo (unsigned char c) |
| 7 | { |
| 8 | g -= __builtin_mul_overflow_p (4, (unsigned char) ~c, 0); |
| 9 | return g; |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | unsigned long long x = foo (1); |
| 16 | if (x != 0) |
| 17 | __builtin_abort (); |
| 18 | return 0; |
| 19 | } |