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