Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
a0664b9ca67b594bd6f570a61d3301167a24750c
/
.
/
memcheck
/
tests
/
wrapmalloc.c
blob: 2307e77df8921dcf1000d52015473f01ba19bdb6 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
/* Test that a program that has malloc/free interposed in a shared
library is also intercepted. */
int
main
(
void
)
{
printf
(
"start\n"
);
void
*
p
=
malloc
(
1024
);
free
(
p
);
printf
(
"done\n"
);
return
0
;
}