b08e6875ab4dd17f43d0bb18cfebd8389ec9af5d
[bpt/coccinelle.git] / tests / ktype.cocci
1 @@
2 type T, T2;
3 type T1;
4 T1 *x;
5 T1 *y;
6 expression E2;
7 @@
8
9 - x = kmalloc(sizeof(T1),E2)
10 + x = kzalloc(sizeof(T1),E2)
11 ...
12 - memset(x,0,sizeof(*y));