Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-elfvers / vers5.c
blob8b1b5360c8e4f0c7f2495f8c8795e078bbbddef7
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 FUNC_SYMVER(original_foo, foo@);
45 FUNC_SYMVER(old_foo, foo@VERS_1.1);
46 FUNC_SYMVER(old_foo1, foo@VERS_1.2);
47 FUNC_SYMVER(new_foo, foo@@VERS_1.2);
49 int
50 main ()
52 return 0;