struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-920501-1.c
blob281aaf8b791da3ee50958274a4e6a8559a38e552
1 /*
2 920501-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 int s[2];
14 int
15 x(int parm)
17 if(!s[0])
19 s[1+s[1]]=s[1];
20 return 1;
24 void
25 testTortureExecute (void){s[0]=s[1]=0;if(x(0)!=1)ASSERT(0);return;}