Import binutils 2.18
[nacl-binutils.git] / ld / testsuite / ld-elfvers / vers21.c
blob2879c7f0e3d94c7c06688908c59ededfb4338fb0
1 __asm__(".symver _old_foo,foo@VERS.0");
2 __asm__(".symver _old_bar,bar@VERS.0");
3 __asm__(".symver _old_foobar,foobar@VERS.0");
4 __asm__(".weak _old_bar");
6 int
7 bar ()
9 return 1;
12 int
13 _old_bar ()
15 return bar ();
18 int
19 foo ()
21 return 2;
24 int
25 _old_foo ()
27 return foo ();
30 int _old_foobar = -1;
32 int foobar = 1;