Re-add support for lbarx, lharx, stbcx. and sthcx. insns back to the E6500 cpu.
[binutils-gdb.git] / ld / testsuite / ld-elfvers / vers4.c
blob46ac43258de86a8fa9ba4994d6ea7ed0e70b2cdc
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 #include <stdio.h>
8 #include "vers.h"
10 extern int foo ();
12 int
13 bar()
15 return 3;
18 int
19 new_foo()
21 return 1000+bar();
25 SYMVER(new_foo, foo@@VERS_2.0);
27 int
28 main()
30 printf("%d\n", foo());
31 return 0;