* cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
[binutils.git] / ld / testsuite / ld-elfvers / vers9.c
blob50793640915f98fb51c9b31b7a6a6050b0d4b5c0
1 /*
2 * Testcase to verify that reference to foo@BAR and a definition of foo@@BAR
3 * are not treated as a multiple def.
4 */
5 #include "vers.h"
7 const char * bar1 = "asdf";
8 const char * bar2 = "asdf";
10 extern int old_foo1();
12 int
13 bar()
15 return 3;
18 int
19 original_foo()
21 return 1+bar();
25 int
26 old_foo()
28 return 10+bar();
32 int
33 new_foo()
35 return 1000+bar();
39 int
40 main()
42 old_foo1();
43 return 0;
46 SYMVER(original_foo, foo@);
47 SYMVER(old_foo, foo@VERS_1.1);
48 SYMVER(old_foo1, foo@VERS_1.2);
49 SYMVER(new_foo, foo@@VERS_1.2);