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