aboutsummaryrefslogtreecommitdiff
path: root/elf/ifuncmain2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/ifuncmain2.c')
-rw-r--r--elf/ifuncmain2.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/elf/ifuncmain2.c b/elf/ifuncmain2.c
new file mode 100644
index 0000000..cd9b2c8
--- /dev/null
+++ b/elf/ifuncmain2.c
@@ -0,0 +1,16 @@
+/* Test calling one STT_GNU_IFUNC function with 3 different
+ STT_GNU_IFUNC definitions. */
+
+#include <stdlib.h>
+
+int global = -1;
+
+extern int foo1 (void);
+
+int
+main (void)
+{
+ if (foo1 () != -1)
+ abort ();
+ return 0;
+}