Elliott Hughes | a0664b9 | 2017-04-18 17:46:52 -0700 | [diff] [blame^] | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | ||||
3 | |||||
4 | /* Test that a program that has malloc/free interposed in a shared | ||||
5 | library is also intercepted. */ | ||||
6 | |||||
7 | int main ( void ) | ||||
8 | { | ||||
9 | printf ("start\n"); | ||||
10 | void *p = malloc (1024); | ||||
11 | free (p); | ||||
12 | printf ("done\n"); | ||||
13 | return 0; | ||||
14 | } |