diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-06-03 16:21:40 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-03 16:21:40 -0700 |
commit | 2f083d7511460b3beea2df165c3e43742f73f3c9 (patch) | |
tree | db6421cac30909a7a0546460ca271d0b54158ea0 /elf/ifuncmain2.c | |
parent | fbb04b35e7997070feec74e0fd46953faef71f9e (diff) | |
download | glibc-2f083d7511460b3beea2df165c3e43742f73f3c9.tar.gz glibc-2f083d7511460b3beea2df165c3e43742f73f3c9.tar.xz glibc-2f083d7511460b3beea2df165c3e43742f73f3c9.zip |
Test for ELF IFUNC functionality.
Diffstat (limited to 'elf/ifuncmain2.c')
-rw-r--r-- | elf/ifuncmain2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/elf/ifuncmain2.c b/elf/ifuncmain2.c new file mode 100644 index 0000000000..cd9b2c8352 --- /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; +} |