t0612: add tests to exercise Git/JGit reftable compatibility
[alt-git.git] / contrib / coccinelle / xcalloc.cocci
blobc291011607ee34618205c13d337d4ce9f040e16d
1 @@
2 type T;
3 T *ptr;
4 expression n;
5 @@
6   xcalloc(
7 + n,
8   \( sizeof(T) \| sizeof(*ptr) \)
9 - , n
10   )