gcc/testsuite/gcc.c-torture/execute/pr83269.c
raw| 1 | /* PR tree-optimization/83269 */ |
| 2 | |
| 3 | int |
| 4 | main () |
| 5 | { |
| 6 | #if __SIZEOF_INT__ == 4 && __SIZEOF_LONG_LONG__ > 4 && __CHAR_BIT__ == 8 |
| 7 | volatile unsigned char a = 1; |
| 8 | long long b = 0x80000000L; |
| 9 | int c = -((int)(-b) - (-0x7fffffff * a)); |
| 10 | if (c != 1) |
| 11 | __builtin_abort (); |
| 12 | #endif |
| 13 | return 0; |
| 14 | } |