struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3289.c
blob5db5dddf5010c77e45f942b39c6ea376a3e557ee
1 /*
2 bug-3289.c
3 A bug in the frontend in handling enum scope
4 */
6 #include <testfwk.h>
8 void testBug(void)
10 enum { EV1 = 3, EV2 = 13, EV3 = 7 };
12 volatile int test1;
13 test1 = EV2; //this works as expected
14 volatile int test2;
15 test2 = EV2; //BUG: ==> test.c:8: error 20: Undefined identifier 'EV2'