Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-elfvers / vers5.c
blob3cae67ebc924f6b23ee5d373a3bcc38ed572ae97
1 /*
2 * Testcase to verify that foo@BAR and foo@@BAR are correctly detected
3 * as a multiply defined symbol.
4 */
5 #include "vers.h"
7 const char * bar1 = "asdf";
8 const char * bar2 = "asdf";
10 int
11 bar()
13 return 3;
16 int
17 original_foo()
19 return 1+bar();
23 int
24 old_foo()
26 return 10+bar();
30 int
31 old_foo1()
33 return 100+bar();
37 int
38 new_foo()
40 return 1000+bar();
44 SYMVER(original_foo, foo@);
45 SYMVER(old_foo, foo@VERS_1.1);
46 SYMVER(old_foo1, foo@VERS_1.2);
47 SYMVER(new_foo, foo@@VERS_1.2);
49 int
50 main ()
52 return 0;