summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers7a.c
blob: 7bee8c70bfe3707ce7235cccad4aef5d1a795b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");