struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3320.c
blob1b34891ad9011fd1987a972af80bb2765451555a
1 /*
2 bug-3320.c
3 A variable scope issue resulting in an invalid compile-time error message.
4 */
6 #include <testfwk.h>
8 char c;
10 void foo()
12 char *dest = &c;
14 *dest++ |= 1;
18 void testBug(void)
20 c = 42;
21 foo ();
22 ASSERT (c == 43);