Release coccinelle-0.2.3rc4
[bpt/coccinelle.git] / tests / fnty.cocci
CommitLineData
5636bb2c
C
1@structure@
2identifier idtype, y;
3type t;
4position p;
5@@
6struct idtype {
7 ...
8 t (*y)(...);@p
9 ...
10};
11
12@bad@
13identifier structure.idtype, y;
14type t;
15position p != structure.p;
16@@
17
18struct idtype {
19 ...
20 t y;@p
21 ...
22};
23
24@depends on !bad@
25identifier structure.idtype;
26@@
27struct
28- idtype
29+ newname
30{
31 ...
32};