[ARM] Fix extern protected data handling
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / pr18718.c
CommitLineData
1659f720
L
1#include <stdio.h>
2#include <bfd_stdint.h>
3
4extern void foo (void);
5
6void
7new_foo (void)
8{
9}
10
11__asm__(".symver new_foo, foo@@VERS_2.0");
12
13__attribute__ ((noinline, noclone))
14int
15bar (void)
16{
17 return (intptr_t) &foo == 0x12345678 ? 1 : 0;
18}
19
20int
21main(void)
22{
23 bar ();
24 printf("PASS\n");
25 return 0;
26}
This page took 0.023003 seconds and 4 git commands to generate.