src/main.c: Make it possible to pass options to the app under test
[memprof.git] / tests / testmemprof.c
blob1c1b99d75e381c279d550cb808fdd97f4a4ff82a
1 #include <stdlib.h>
2 #include <unistd.h>
4 void *a()
6 return malloc(1000);
9 void *b()
11 void *result = a();
12 free (malloc(1000));
14 return result;
17 int main()
19 char *block;
21 free (malloc(1000));
22 block = b();
23 block = malloc(1000);
24 block = b();
25 free(block);
27 return 0;