tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git] / memcheck / tests / accounting.c
blob1654bb0288f4fb5e90219c22e71fd140114de41d
1 /*
2 * test case for valgrind realloc() bug
3 */
5 #include <stdlib.h>
6 #include <assert.h>
8 int
9 main(void)
11 void *p;
12 void *r;
14 p = malloc(1);
15 assert(p != NULL);
17 r = realloc(p, -1);
18 assert(r == NULL);
20 free(p);
22 return 0;