gdb: restore nullptr check in compunit_symtab::find_call_site
[binutils-gdb.git] / ld / testsuite / ld-elfvers / vers18.c
blobfe1017b67e36cd39f4adedbb8cda0e220c13cd18
1 #include "vers.h"
3 int
4 bar ()
6 return 3;
9 #pragma weak hide_original_foo
11 int
12 hide_original_foo ()
14 return 1 + bar ();
17 #pragma weak hide_old_foo
19 int
20 hide_old_foo ()
22 return 10 + bar();
25 #pragma weak hide_old_foo1
27 int
28 hide_old_foo1 ()
30 return 100 + bar ();
33 #pragma weak hide_new_foo
35 int
36 hide_new_foo ()
38 return 1000 + bar ();
41 FUNC_SYMVER(hide_original_foo, show_foo@);
42 FUNC_SYMVER(hide_old_foo, show_foo@VERS_1.1);
43 FUNC_SYMVER(hide_old_foo1, show_foo@VERS_1.2);
44 FUNC_SYMVER(hide_new_foo, show_foo@@VERS_2.0);