This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers4.c
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 }
This page took 0.03119 seconds and 5 git commands to generate.