tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git] / memcheck / tests / static_malloc.c
blob22def9e86b546940056298d1f58587fe93ee748b
1 #include <stdio.h>
3 static char buf[10000];
4 static int bufi = 0;
5 void* malloc(size_t i) {
6 bufi += i;
7 return buf + bufi - i;
10 void free(void*ptr) {
13 int main (void)
15 char *p;
16 p = malloc(10);
17 p = malloc(123);
18 free(p);
19 return 0;