]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-elfvers/vers4.c
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-elfvers / vers4.c
CommitLineData
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 */
7int bar()
8{
9 return 3;
10}
11
12new_foo()
13{
14 return 1000+bar();
15
16}
17
18__asm__(".symver new_foo,foo@@VERS_2.0");
19
20main()
21{
22 printf("%d\n", foo());
23}