blob: b15295482963fae7dab1cbbdef7b22c9d2ea7852 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
20170419-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
/* PR tree-optimization/80426 */
/* Testcase by <ishiura-compiler@ml.kwansei.ac.jp> */
#define INT_MAX 0x7fffffff
#define INT_MIN (-INT_MAX-1)
int x;
void
testTortureExecute (void)
{
volatile int a = 0;
volatile int b = -INT_MAX;
int j;
for(j = 0; j < 18; j += 1) {
x = ( (a == 0) != (b - (int)(INT_MIN) ) );
}
if (x != 0)
ASSERT (0);
}
|