struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-divcmp-5.c
bloba6da10030d15937914412d18358e5111daa03dc8
1 /*
2 divcmp-5.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR middle-end/26561 */
9 int always_one_1 (int a)
11 if (a/100 >= -999999999)
12 return 1;
13 else
14 return 0;
17 int always_one_2 (int a)
19 if (a/100 < -999999999)
20 return 0;
21 else
22 return 1;
25 void
26 testTortureExecute (void)
28 if (always_one_1 (0) != 1)
29 ASSERT (0);
31 if (always_one_2 (0) != 1)
32 ASSERT (0);
34 return;