Update FSF addresses
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers9.c
CommitLineData
252b5132
RH
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 */
5const char * bar1 = "asdf";
6const char * bar2 = "asdf";
7
0cd9f5f0
ILT
8extern int old_foo1();
9
252b5132
RH
10int
11bar()
12{
13 return 3;
14}
15
16int
17original_foo()
18{
19 return 1+bar();
20
21}
22
23int
24old_foo()
25{
26 return 10+bar();
27
28}
29
30int
31new_foo()
32{
33 return 1000+bar();
34
35}
36
37int
38main()
39{
40 old_foo1();
41 return 0;
42}
43
44__asm__(".symver original_foo,foo@");
45__asm__(".symver old_foo,foo@VERS_1.1");
46__asm__(".symver old_foo1,foo@VERS_1.2");
47__asm__(".symver new_foo,foo@@VERS_1.2");
This page took 0.252161 seconds and 4 git commands to generate.