IFUNC: Update IFUNC resolver check with DT_TEXTREL
[deliverable/binutils-gdb.git] / ld / testsuite / ld-ifunc / pr23169b.c
CommitLineData
4ec09950
L
1#include <stdio.h>
2
3extern int (*func_p) (void);
4extern int func (void);
5extern void foo (void);
6
7
8void
9bar (void)
10{
11 if (func_p != &func || func_p () != 0xbadbeef)
12 __builtin_abort ();
13}
14
15int
16main ()
17{
18 func_p = &func;
19 foo ();
20 bar ();
21 printf ("PASS\n");
22 return 0;
23}
This page took 0.132 seconds and 4 git commands to generate.