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