]>
Commit | Line | Data |
---|---|---|
c8a8d3bb ILT |
1 | /* |
2 | * Testcase to make sure that a versioned symbol definition in an | |
3 | * application correctly defines the version node, if and only if | |
4 | * the actual symbol is exported. This is built both with and without | |
5 | * -export-dynamic. | |
6 | */ | |
7 | int bar() | |
8 | { | |
9 | return 3; | |
10 | } | |
11 | ||
12 | new_foo() | |
13 | { | |
14 | return 1000+bar(); | |
15 | ||
16 | } | |
17 | ||
18 | __asm__(".symver new_foo,foo@@VERS_2.0"); | |
19 | ||
20 | main() | |
21 | { | |
22 | printf("%d\n", foo()); | |
23 | } |