summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gold/testsuite/exclude_libs_test_1.c
blob: 48b617b0a02c736fccb2d70de7feddbad164d013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
void lib1_default (void);
void lib1_hidden (void);
void lib1_internal (void);
void lib1_protected (void);
void lib1_ref (void);
extern void lib2_default (void);

void __attribute__((visibility ("default")))
lib1_default (void)
{
}

void __attribute__((visibility ("hidden")))
lib1_hidden (void)
{
}

void __attribute__((visibility ("internal")))
lib1_internal (void)
{
}

void __attribute__((visibility ("protected")))
lib1_protected (void)
{
}

void
lib1_ref (void)
{
  lib2_default ();
}