diff options
Diffstat (limited to 'elf/preloadtest.c')
-rw-r--r-- | elf/preloadtest.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/preloadtest.c b/elf/preloadtest.c new file mode 100644 index 0000000..ac27f67 --- /dev/null +++ b/elf/preloadtest.c @@ -0,0 +1,19 @@ +#include <stdio.h> + +extern int preload (int); + +int +main (void) +{ + int res = preload (42); + + printf ("preload (42) = %d, %s\n", res, res == 92 ? "ok" : "wrong"); + + return res != 92; +} + +int +foo (int a) +{ + return a; +} |