struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20051021-1.c
blob8e7882f8751402e38937962040754f4b26140972
1 /*
2 20051021-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 /* Verify that TRUTH_AND_EXPR is not wrongly changed to TRUTH_ANDIF_EXPR. */
13 int count = 0;
15 int foo1(void)
17 count++;
18 return 0;
21 int foo2(void)
23 count++;
24 return 0;
27 void testTortureExecute(void)
29 if ((foo1() == 1) & (foo2() == 1))
30 ASSERT (0);
32 if (count != 2)
33 ASSERT (0);
35 return;