1999-07-21 Philippe De Muyter <phdm@macqel.be>
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers15.c
CommitLineData
252b5132
RH
1/*
2 * Testcase to make sure that if we externally reference a versioned symbol
3 * that we always get the right one.
4 */
5
6int
7foo_1()
8{
9 return 1034;
10}
11
12int
13foo_2()
14{
15 return 1343;
16}
17
18int
19foo_3()
20{
21 return 1334;
22}
23
24int
25main()
26{
27 printf("Expect 4, get %d\n", foo_1());
28 printf("Expect 13, get %d\n", foo_2());
29 printf("Expect 103, get %d\n", foo_3());
30 return 0;
31}
32
33__asm__(".symver foo_1,show_foo@");
34__asm__(".symver foo_2,show_foo@VERS_1.1");
35__asm__(".symver foo_3,show_foo@@VERS_1.2");
This page took 0.039362 seconds and 4 git commands to generate.