1 | int |
---|---|
2 | foo_v1 (int a) |
3 | { |
4 | return 1; |
5 | } |
6 | asm (".symver foo_v1, foo@v1"); |
7 | |
8 | int |
9 | foo_v2 (int a) |
10 | { |
11 | return 2; |
12 | } |
13 | asm (".symver foo_v2, foo@v2"); |
14 | |
15 | int |
16 | foo (int a) |
17 | { |
18 | return 3; |
19 | } |
20 | asm (".symver foo, foo@@@v3"); |
21 |
1 | int |
---|---|
2 | foo_v1 (int a) |
3 | { |
4 | return 1; |
5 | } |
6 | asm (".symver foo_v1, foo@v1"); |
7 | |
8 | int |
9 | foo_v2 (int a) |
10 | { |
11 | return 2; |
12 | } |
13 | asm (".symver foo_v2, foo@v2"); |
14 | |
15 | int |
16 | foo (int a) |
17 | { |
18 | return 3; |
19 | } |
20 | asm (".symver foo, foo@@@v3"); |
21 |