aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-8b.c
blob: 3b6db5fbe4970d28f3904b322f1a014b11cbb763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern int bar(void) __attribute__((__visibility__("hidden"), __const__));
extern void baz(int);

void foo(char c)
{
  int i;

  if (bar())
    i = c;
  else
    i = c;

  baz(i);
}