1 /* { dg-additional-options "-fwrapv" } */
14 return ~(x
- INT_MIN
);
30 void test(int a
, int b
)
45 #if INT_MAX == 2147483647
46 test(0x00000000,0x7fffffff);
47 test(0x80000000,0xffffffff);
48 test(0x12345678,0x6dcba987);
49 test(0x92345678,0xedcba987);
50 test(0x7fffffff,0x00000000);
51 test(0xffffffff,0x80000000);