blob: 80808e3d7a9e450dce344693b4063dc7fe9bc883 [file] [log] [blame]
Tim Duesterhus63ee0e42021-09-15 13:58:45 +02001@@
2type T;
3expression E;
4expression t;
5@@
6
7(
8 t = calloc(E, sizeof(*t))
9|
10- t = calloc(E, sizeof(T))
11+ t = calloc(E, sizeof(*t))
12)
13
14@@
15type T;
16T *x;
17@@
18
19 x = malloc(
20- sizeof(T)
21+ sizeof(*x)
22 )
23
24@@
25type T;
26T *x;
27@@
28
29 x = calloc(1,
30- sizeof(T)
31+ sizeof(*x)
32 )
33
34@@
35@@
36
37 calloc(
38+ 1,
39 ...
40- ,1
41 )