struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-990804-1.c
blob3b084898208b59fb2fa8281a948af6be1e00406d
1 /*
2 990804-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 gfbyte ( void )
13 return 0;
16 void
17 testTortureExecute (void)
19 int i,j,k ;
21 i = gfbyte();
23 i = i + 1 ;
25 if ( i == 0 )
26 k = -0 ;
27 else
28 k = i + 0 ;
30 if (i != 1)
31 ASSERT (0);
33 k = 1 ;
34 if ( k <= i)
35 do
36 j = gfbyte () ;
37 while ( k++ < i ) ;
39 return;