4 { // All sizes are multiples of 16 -- no slop.
5 int* x = realloc(NULL, 800); // equivalent to malloc(800), and ends up
6 int* y __attribute__((unused)); // calling Valgrind's (and Massif's) malloc
8 x = realloc(x, 800); // same size
10 x = realloc(x, 400); // smaller
12 x = realloc(x, 1200); // bigger
14 y = realloc(x+10, 1600); // bogus realloc
16 x = realloc(x, 0); // equivalent to free(x), and ends up
17 // calling Valgrind's (and Massif's) free