Coccinelle release 1.0.0-rc1
[bpt/coccinelle.git] / tests / bad_typedef.cocci
... / ...
CommitLineData
1@ rule1 @
2type T;
3identifier lock;
4@@
5
6T { ...
7 struct semaphore lock;
8 ...
9 };
10
11@@
12type rule1.T;
13identifier rule1.lock;
14T *x;
15@@
16
17- x->lock
18+ x->new_lock