PR tree-optimization/80426
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20170429-1.c
blobf59dbc7a0578ea20277a7360ea7d2273a777c337
1 /* PR tree-optimization/80426 */
2 /* Testcase by <ishiura-compiler@ml.kwansei.ac.jp> */
4 #define INT_MAX 0x7fffffff
5 #define INT_MIN (-INT_MAX-1)
7 int x;
9 int main (void)
11 volatile int a = 0;
12 volatile int b = -INT_MAX;
13 int j;
15 for(j = 0; j < 18; j += 1) {
16 x = ( (a == 0) != (b - (int)(INT_MIN) ) );
19 if (x != 0)
20 __builtin_abort ();
22 return 0;