diff options
Diffstat (limited to 'ld/testsuite/ld-elfvers/vers7a.c')
-rw-r--r-- | ld/testsuite/ld-elfvers/vers7a.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvers/vers7a.c b/ld/testsuite/ld-elfvers/vers7a.c new file mode 100644 index 0000000..7bee8c7 --- /dev/null +++ b/ld/testsuite/ld-elfvers/vers7a.c @@ -0,0 +1,18 @@ +/* + * Test supplied by Ulrich. Verify that we can correctly force 'a' + * to local scope. + */ +int +__a_internal (int e) +{ + return e + 10; +} + +int +__b_internal (int e) +{ + return e + 42; +} + +asm (".symver __a_internal,hide_a@@VERS_1"); +asm (".symver __b_internal,show_b@@VERS_1"); |