Release coccinelle-0.1.1
[bpt/coccinelle.git] / tests / struct.cocci
1 @ r1 @
2 identifier X, Y;
3 @@
4
5 struct foo {
6 ...
7 struct bar X;
8 ...
9 struct xxx Y;
10 ...
11 };
12
13 @@
14 struct foo *a;
15 identifier r1.X;
16 @@
17
18 - f(a->X);
19
20 @@
21 struct foo *a;
22 identifier r1.Y;
23 @@
24
25 - f(a->Y);