aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr19719c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/pr19719c.c')
-rw-r--r--ld/testsuite/ld-elf/pr19719c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr19719c.c b/ld/testsuite/ld-elf/pr19719c.c
new file mode 100644
index 0000000..5c877d9
--- /dev/null
+++ b/ld/testsuite/ld-elf/pr19719c.c
@@ -0,0 +1,8 @@
+extern int __attribute__ ((weak)) fun (void);
+int
+bar (void)
+{
+ if (&fun != 0)
+ return fun ();
+ return 0;
+}