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