gdb: restore nullptr check in compunit_symtab::find_call_site
[binutils-gdb.git] / ld / testsuite / ld-elfvers / vers9.c
blobf70b0af9ffd147b042f40024288012e7f59f8901
1 /*
2 * Testcase to verify that reference to foo@BAR and a definition of foo@@BAR
3 * are not treated as a multiple def.
4 */
5 #include "vers.h"
7 const char * bar1 = "asdf";
8 const char * bar2 = "asdf";
10 extern int old_foo1();
12 int
13 bar()
15 return 3;
18 int
19 original_foo()
21 return 1+bar();
25 int
26 old_foo()
28 return 10+bar();
32 int
33 new_foo()
35 return 1000+bar();
39 int
40 main()
42 old_foo1();
43 return 0;
46 FUNC_SYMVER(original_foo, foo@);
47 FUNC_SYMVER(old_foo, foo@VERS_1.1);
48 FUNC_SYMVER(old_foo1, foo@VERS_1.2);
49 FUNC_SYMVER(new_foo, foo@@VERS_1.2);