aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/wrap1b.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/wrap1b.c')
-rw-r--r--ld/testsuite/ld-elf/wrap1b.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/wrap1b.c b/ld/testsuite/ld-elf/wrap1b.c
new file mode 100644
index 0000000..abd39aa
--- /dev/null
+++ b/ld/testsuite/ld-elf/wrap1b.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+extern void par (void);
+
+void __real_par (void)
+{
+ printf ("__real_par \n");
+ par ();
+}
+
+void
+__wrap_par (void)
+{
+ printf ("__wrap_par \n");
+ __real_par ();
+}