c8a8d3bb27
* ld-elfvers/vers.exp, *: New tests for symbol versioning. * config/default.exp: Set ar and strip.
18 lines
278 B
C
18 lines
278 B
C
/*
|
|
* 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");
|