coccinelle release 0.2.5
[bpt/coccinelle.git] / tests / positionc.cocci
CommitLineData
34e49164
C
1@x disable all@
2position p;
3expression E;
4expression A;
5statement S1, S2;
6@@
7
8if@p (foo(E,A)) S1 else S2
9
10// here the incoming environment is p = 1,2 E = 6 and p = 3 E = 7
11@disable all@
12position p1 != x.p;
13expression x.E;
14expression B;
15statement S1, S2;
16@@
17
18- if@p1 (foo(E,B)) S1 else S2
19
20@y disable all@
21position p;
22expression E;
23expression A;
24statement S1, S2;
25@@
26
27if@p (bar(E,A)) S1 else S2
28
29// here the incoming environment is p = 4,5 E = 6 and p = 6 E = 7
30@disable all@
31position p1 != y.p;
32expression y.E;
33expression C;
34statement S1, S2;
35@@
36
37- if@p1 (bar(C,E)) S1 else S2