2 * Basic test of versioning. The idea with this is that we define
3 * a bunch of definitions of the same symbol, and we can theoretically
4 * then link applications against varying sets of these.
6 const char * show_bar1 = "asdf";
7 const char * show_bar2 = "asdf";
15 * The 'hide' prefix is something so that we can automatically search the
16 * symbol table and verify that none of these symbols were actually exported.
42 __asm__(".symver hide_original_foo,show_foo@");
43 __asm__(".symver hide_old_foo,show_foo@VERS_1.1");
44 __asm__(".symver hide_old_foo1,show_foo@VERS_1.2");
45 __asm__(".symver hide_new_foo,show_foo@@VERS_2.0");
50 /* In test 10, we try and define a non-existant version node. The linker
51 * should catch this and complain. */
57 __asm__(".symver hide_new_bogus_foo,show_foo@VERS_2.2");
65 * This test is designed to catch a couple of syntactic errors. The assembler
66 * should complain about both of the directives below.
74 __asm__(".symver new2_foo,fooVERS_2.0");
75 __asm__(".symver bar33,bar@@VERS_2.0");
80 * This test is designed to catch a couple of syntactic errors. The assembler
81 * should complain about both of the directives below.
89 __asm__(".symver bar33,bar@@VERS_2.0");