struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-478094.c
blob7497564561b70c29573b77696629ac1307b9093a
1 /* Tests a commit problem.
2 */
3 #include <testfwk.h>
7 int foo = 16;
9 void f( int x )
11 UNUSED(x);
14 void g(int bar)
16 int a = 0;
17 int b = 0;
19 while(1) {
20 switch(bar) {
21 case 0:
22 --foo;
23 f(foo);
24 break;
25 case 1:
26 ++foo;
27 f(foo);
28 break;
29 case 2:
30 ++a;
31 f(a);
32 break;
33 case 3:
34 ++b;
35 f(b);
36 break;
41 void testBug(void)