about summary refs log tree commit diff
path: root/elf/tst-secondary3.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-secondary3.c')
-rw-r--r--elf/tst-secondary3.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/elf/tst-secondary3.c b/elf/tst-secondary3.c
new file mode 100644
index 0000000000..b55baea6d6
--- /dev/null
+++ b/elf/tst-secondary3.c
@@ -0,0 +1,13 @@
+/* Verify that weak function is called.  */
+
+#include "tst-secondary.h"
+
+extern int bar (void);
+extern void foo (void);
+
+int
+main (void)
+{
+  foo ();
+  return bar () != WEAK;
+}