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