aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr18900a.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-i386/pr18900a.c')
-rw-r--r--ld/testsuite/ld-i386/pr18900a.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/pr18900a.c b/ld/testsuite/ld-i386/pr18900a.c
new file mode 100644
index 0000000..fa2fc06
--- /dev/null
+++ b/ld/testsuite/ld-i386/pr18900a.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+void
+foo (void)
+{
+ printf ("OK\n");
+}
+
+void *
+bar (void)
+{
+ foo ();
+ return &foo;
+}