struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-1654060.c
blob6958139bb3214399bc2ac94011261c031b9d518f
1 /*
2 bug-1654060.c
4 typedef within function causes syntax error
5 */
7 #include <testfwk.h>
8 typedef char mytype1;
9 typedef int mytype2;
11 mytype1 c1 = 'A';
12 mytype2 i1 = 12345;
14 void testTypedef(void)
16 typedef int mytype1;
17 typedef char mytype2;
19 mytype1 i2 = 21435;
20 mytype2 c2 = 'B';
22 ASSERT(c1 == 'A');
23 ASSERT(i1 == 12345);
24 ASSERT(c2 == 'B');
25 ASSERT(i2 == 21435);