struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2956.c
blob301427dcc073f9490b719c86f53391f1810c8b34
1 /*
2 bug-2452.c
3 live-range shortening would move return before assignment to global in compound op
4 */
6 #include <testfwk.h>
8 #pragma disable_warning 283
10 unsigned int val;
12 unsigned int testadd()
14 return (val += 1);
17 void testBug(void)
19 testadd();
20 ASSERT (val == 1);