This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers18.c
1 int
2 bar ()
3 {
4 return 3;
5 }
6
7 #pragma weak hide_original_foo
8
9 int
10 hide_original_foo ()
11 {
12 return 1 + bar ();
13 }
14
15 #pragma weak hide_old_foo
16
17 int
18 hide_old_foo ()
19 {
20 return 10 + bar();
21 }
22
23 #pragma weak hide_old_foo1
24
25 int
26 hide_old_foo1 ()
27 {
28 return 100 + bar ();
29 }
30
31 #pragma weak hide_new_foo
32
33 int
34 hide_new_foo ()
35 {
36 return 1000 + bar ();
37 }
38
39 __asm__(".symver hide_original_foo,show_foo@");
40 __asm__(".symver hide_old_foo,show_foo@VERS_1.1");
41 __asm__(".symver hide_old_foo1,show_foo@VERS_1.2");
42 __asm__(".symver hide_new_foo,show_foo@@VERS_2.0");
This page took 0.032218 seconds and 5 git commands to generate.