struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020716-1.c
blob130e87f5c6f833f51d9f3e58ae0de71688701e8d
1 /*
2 20020716-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 int sub1 (int val)
13 return val;
16 int testcond (int val)
18 int flag1;
21 int t1 = val;
23 int t2 = t1;
25 flag1 = sub1 (t2) ==0;
26 goto lab1;
29 lab1: ;
32 if (flag1 != 0)
33 return 0x4d0000;
34 else
35 return 0;
38 void testTortureExecute (void)
40 if (testcond (1))
41 ASSERT (0);
42 return;