diff options
Diffstat (limited to 'gold/testsuite/ifuncvar2.c')
-rw-r--r-- | gold/testsuite/ifuncvar2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/testsuite/ifuncvar2.c b/gold/testsuite/ifuncvar2.c new file mode 100644 index 00000000000..f09de0e12a1 --- /dev/null +++ b/gold/testsuite/ifuncvar2.c @@ -0,0 +1,12 @@ +/* Test global variable initialized to hidden STT_GNU_IFUNC symbol. */ + +extern void foo (void); +void (*f) (void) = &foo; + +extern void bar (void); + +void +bar (void) +{ + f (); +} |