Update contributors list for update of alpha-vms bfd.
[binutils.git] / ld / testsuite / ld-elfvers / vers5.c
blobcc6ea40b6784dede48e99f3d876854f3cae62598
1 /*
2 * Testcase to verify that foo@BAR and foo@@BAR are correctly detected
3 * as a multiply defined symbol.
4 */
5 const char * bar1 = "asdf";
6 const char * bar2 = "asdf";
8 int
9 bar()
11 return 3;
14 int
15 original_foo()
17 return 1+bar();
21 int
22 old_foo()
24 return 10+bar();
28 int
29 old_foo1()
31 return 100+bar();
35 int
36 new_foo()
38 return 1000+bar();
42 __asm__(".symver original_foo,foo@");
43 __asm__(".symver old_foo,foo@VERS_1.1");
44 __asm__(".symver old_foo1,foo@VERS_1.2");
45 __asm__(".symver new_foo,foo@@VERS_1.2");
47 int
48 main ()
50 return 0;