Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug-478094.c
1 /* Tests a commit problem.
2  */
3 #include <testfwk.h>
4
5
6
7 int foo = 16;
8
9 void f( int x )
10 {
11   UNUSED(x);
12 }
13
14 void g(int bar)
15 {
16   int a = 0;
17   int b = 0;
18
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;
37     }
38   }
39 }
40
41 void testBug(void)
42 {
43 }