19990502 sourceware import
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers9.c
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 const char * bar1 = "asdf";
6 const char * bar2 = "asdf";
7
8 int
9 bar()
10 {
11 return 3;
12 }
13
14 int
15 original_foo()
16 {
17 return 1+bar();
18
19 }
20
21 int
22 old_foo()
23 {
24 return 10+bar();
25
26 }
27
28 int
29 new_foo()
30 {
31 return 1000+bar();
32
33 }
34
35 int
36 main()
37 {
38 old_foo1();
39 return 0;
40 }
41
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");
This page took 0.029192 seconds and 4 git commands to generate.