struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2981.c
blobb800728efe4b95c61db1a6bc513942d6bca6d469
1 /*
2 bug-3132.c
3 A bug in the handling of inlined function call in a comma operator inside a for condition (code failed to compile)
4 */
6 #include <testfwk.h>
8 volatile int i;
10 static inline void iRestore(void)
12 i++;
15 int m(void) {
16 for(unsigned char td = 1; td; td = 0, iRestore());
17 return 0;
20 void testBug (void)
22 m();
23 ASSERT (i == 1);