struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-vrp-3.c
blobe1dabb9f5e742a2efd546c70e635e4b9b7a2cc4c
1 /*
2 vrp-3.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 int f (int a) {
8 if (a < 12) {
9 if (a > -15) {
10 a = a > 0 ? a : -a;
11 if (a == 2)
12 return 0;
13 return 1;
16 return 1;
19 void
20 testTortureExecute (void) {
21 if (f (-2))
22 ASSERT (0);
23 return;