struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20041210-1.c
blob4d77f15a12685ee281ef427583a82418e29496d8
1 /*
2 20041210-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* The FR-V port used to fail this test because the andcc patterns
12 wrongly claimed to set the C and V flags. */
13 #include <limits.h>
15 int x[4] = { INT_MIN / 2, INT_MAX, 2, 4 };
17 void
18 testTortureExecute (void)
20 if (x[0] < x[1])
21 if ((x[2] & x[3]) < 0)
22 ASSERT (0);
23 return;