regtest: fix compiler warnings with clang 16
[valgrind.git] / memcheck / tests / suppfree.c
blob1173f1bb50ffd257909e6a23534b71bf8ba12af4
2 #include <stdlib.h>
4 void ddd ( char* x )
6 free(x);
7 free(x);
10 void ccc (char* x)
12 ddd(x);
15 void bbb (char* x)
17 ccc(x);
20 void aaa (char* x)
22 bbb(x);
25 void ok_to_suppress_double_free_from_this_fun(char* y)
27 aaa(y);
30 int main ( int argc, char*argv[] )
32 char* x = malloc(10);
33 char* y = malloc(10);
34 if (argc > 1)
35 ok_to_suppress_double_free_from_this_fun(y);
36 aaa(x);
37 return 0;