aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfvers/vers7a.c
blob: 8fcad79f679031e34b8d73fa15225b178a8b1380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Test supplied by Ulrich.  Verify that we can correctly force 'a'
 * to local scope.
 */
#include "vers.h"

int
__a_internal (int e)
{
  return e + 10;
}

int
__b_internal (int e)
{
  return e + 42;
}

FUNC_SYMVER(__a_internal, hide_a@@VERS_1);
FUNC_SYMVER(__b_internal, show_b@@VERS_1);