Automatic date update in version.in
[binutils-gdb.git] / gold / testsuite / ifuncvar1.c
blob75af2a6a930727e7bc0e34d1c9a31c38b37ecfcd
1 /* Test global variable initialized to hidden STT_GNU_IFUNC symbol. */
3 int didit;
5 extern void doit (void);
7 void
8 doit (void)
10 didit = 1;
13 void (*get_foo (void)) (void) __asm__ ("foo");
14 __asm__ (".type foo, %gnu_indirect_function");
15 __asm__ (".hidden foo");
17 void (*get_foo (void)) (void)
19 return &doit;