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.
8 const char * show_bar1
= "asdf";
9 const char * show_bar2
= "asdf";
11 extern int new2_foo();
21 * The 'hide' prefix is something so that we can automatically search the
22 * symbol table and verify that none of these symbols were actually exported.
52 FUNC_SYMVER(hide_original_foo
, show_foo@
);
53 FUNC_SYMVER(hide_old_foo
, show_foo@VERS_1
.1
);
54 FUNC_SYMVER(hide_old_foo1
, show_foo@VERS_1
.2
);
55 FUNC_SYMVER(hide_new_foo
, show_foo@@VERS_2
.0
);
60 /* In test 10, we try and define a non-existant version node. The linker
61 * should catch this and complain. */
68 FUNC_SYMVER(hide_new_bogus_foo
, show_foo@VERS_2
.2
);
76 * This test is designed to catch a couple of syntactic errors. The assembler
77 * should complain about both of the directives below.
86 FUNC_SYMVER(new2_foo
, fooVERS_2
.0
);
87 FUNC_SYMVER(bar33
, bar@@VERS_2
.0
);
92 * This test is designed to catch a couple of syntactic errors. The assembler
93 * should complain about both of the directives below.
102 FUNC_SYMVER(bar33
, bar@@VERS_2
.0
);
This page took 0.031188 seconds and 4 git commands to generate.