Release coccinelle-0.1.8
[bpt/coccinelle.git] / tests / ifelse.c
1
2 int f(void)
3 {
4 if (x1)
5 w++;
6 else if (y1)
7 z--;
8 else if (z1)
9 a--;
10
11 if (x2)
12 w++;
13 else if (y2)
14 z--;
15
16 if (x3)
17 {
18 w++;
19 }
20 else if (y3)
21 {
22 z--;
23 }
24
25 if (x4)
26 w++;
27 else if (y4)
28 z--;
29 else if (z4)
30 a--;
31 else if (a4)
32 a--;
33 }
34
35
36 function if_if(void)
37 {
38 if (x4)
39 w++;
40 if (y4)
41 z--;
42
43 dummy--;
44
45 if (x5)
46 w++;
47 A++;
48 if (y5)
49 z--;
50
51 }
52