1 /*
2    bug-2452.c
3    live-range shortening would move return before assignment to global in compound op
4 */
5 
6 #include <testfwk.h>
7 
8 unsigned int val;
9 
testadd()10 unsigned int testadd()
11 {
12     return (val += 1);
13 }
14 
testBug(void)15 void testBug(void)
16 {
17     testadd();
18     ASSERT (val == 1);
19 }
20 
21