struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / scott-for.c
blob91eff603c27c48810027c7bcd9b3c2f9a1129627
1 /*
2 */
3 #include <testfwk.h>
5 unsigned int aint0 = 0;
6 unsigned int aint1 = 0;
7 unsigned char achar0 = 0;
8 unsigned char achar1 = 0;
10 unsigned char call3(void);
12 void for1(void)
14 unsigned char i=0;
16 for(i=0; i<10; i++)
17 achar0++;
19 ASSERT(!(achar0 != 10));
23 void for2(void)
25 unsigned char i=0;
27 for(i=0; i<10; i++)
28 achar0++;
30 ASSERT(!(i < 10));
34 void
35 testFor(void)
37 for1();
38 for2();