* doc/Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Include
[binutils.git] / ld / testsuite / ld-elfvers / vers9.c
blobbef1402d2699657dabc7cb8697bac5d807a4b9f1
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 const char * bar1 = "asdf";
6 const char * bar2 = "asdf";
8 extern int old_foo1();
10 int
11 bar()
13 return 3;
16 int
17 original_foo()
19 return 1+bar();
23 int
24 old_foo()
26 return 10+bar();
30 int
31 new_foo()
33 return 1000+bar();
37 int
38 main()
40 old_foo1();
41 return 0;
44 __asm__(".symver original_foo,foo@");
45 __asm__(".symver old_foo,foo@VERS_1.1");
46 __asm__(".symver old_foo1,foo@VERS_1.2");
47 __asm__(".symver new_foo,foo@@VERS_1.2");