aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/gc.c
blob: c662f72f8b71411b36f0fd2118c4edd8d925ef00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int unused_var = 7;
int used_var = 7;

int
unused_func (int v)
{
  return 3 * unused_var;
}

int
used_func (int v)
{
  return 2 * used_var;
}

int
main (void)
{
  return used_func (5);
}