Initial revision
[binutils.git] / ld / testsuite / ld-elfvers / vers4.c
blob15497cacc819f27f93c3df0f02606823efc641af
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
8 bar()
10 return 3;
13 int
14 new_foo()
16 return 1000+bar();
20 __asm__(".symver new_foo,foo@@VERS_2.0");
22 int
23 main()
25 printf("%d\n", foo());
26 return 0;