aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-18a.c
blob: 477386af8c69fe1f1e750f5b1e7797610ce968fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>

extern int select ();
extern int f1 (int);
extern int f2 (int);

int main (void)
{
  switch (select ())
    {
    case 1:
      printf ("%d\n", f1 (3));
      break;
    case 2:
      printf ("%d\n", f2 (4));
      break;
    default:
      printf ("%d\n", f2 (0));
      break;
    }
  return 0;
}