aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/reloc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/reloc2.c')
-rw-r--r--testsuite/reloc2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/reloc2.c b/testsuite/reloc2.c
new file mode 100644
index 0000000..6c7fed5
--- /dev/null
+++ b/testsuite/reloc2.c
@@ -0,0 +1,13 @@
+#include <stdlib.h>
+
+extern int f2 (int add);
+extern void * f3 (void);
+
+int main()
+{
+ if (f2 (1) != 27 || f2 (0) != 1)
+ abort ();
+ if (f3 () != (void *) f3)
+ abort ();
+ exit (0);
+}