]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-elfvers/vers15.c
2 * Testcase to make sure that if we externally reference a versioned symbol
3 * that we always get the right one.
27 printf("Expect 4, get %d\n", foo_1());
28 printf("Expect 13, get %d\n", foo_2());
29 printf("Expect 103, get %d\n", foo_3());
33 __asm__(".symver foo_1,show_foo@");
34 __asm__(".symver foo_2,show_foo@VERS_1.1");
35 __asm__(".symver foo_3,show_foo@@VERS_1.2");