struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3727.c
blobd72118f74d4fff4da5c3c97d1da5045201484d47
1 /* bug-3727.c
3 */
5 #include <testfwk.h>
7 typedef unsigned char u8;
9 void VDP_Poke_16K( u8 dest );
11 int bad = 1;
13 u8 n1;
15 void fake (void)
17 n1 = 32;
20 void SatUpdate(void)
22 n1=0;
24 if ( bad )
26 for (u8 j=0; j<1; j++)
28 fake();
31 VDP_Poke_16K( 2*n1 );
34 void testBug(void)
36 SatUpdate();
40 void VDP_Poke_16K( u8 dest )
42 #if 0 // Bug not yet fixed
43 ASSERT(dest);
44 #else
45 (void)dest;
46 #endif