Release coccinelle-0.1.1
[bpt/coccinelle.git] / tests / ppos.cocci
CommitLineData
34e49164
C
1@a@
2position p;
3identifier f;
4expression E;
5@@
6
7f(...) {
8 <... when strict
9(
10E@p = ERR_PTR(...)
11|
12E@p = NULL
13)
14...>
15return E;
16}
17
18@b exists@
19identifier f, fld;
20expression E,E1,E2;
21position p1, p2 != a.p;
22@@
23
24f(...) {
25(
26 ... when any
27 E@p2 = E1
28 ... when != E->fld
29 when != E = E2
30 return@p1 E;
31|
32 ... when != E->fld
33 when != E = E2
34 return@p1 E;
35)
36}