Release coccinelle-0.1
[bpt/coccinelle.git] / tests / kmalloc.c
1 int main() {
2 struct bar *y;
3 struct foo *x = kmalloc(sizeof(struct foo),GPF_KERNEL);
4 if (!x) return -ENOMEM;
5 y = kmalloc(sizeof(struct bar),GPF_KERNEL);
6 if (!y) return -ENOMEM;
7 memset(x,0,sizeof(struct foo));
8 memset(y,0,sizeof(struct bar));
9 }