about summary refs log tree commit diff
path: root/elf/preloadtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/preloadtest.c')
-rw-r--r--elf/preloadtest.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/elf/preloadtest.c b/elf/preloadtest.c
new file mode 100644
index 0000000000..ac27f67150
--- /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;
+}