summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr45736_0.c
blob: 860e239b53256e28be1756648eccdfc391dad51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-lto-do link } */
/* { dg-lto-options {{-flto -r -nostdlib -O}} } */

extern void baz (void);

static void __attribute__ ((constructor))
bar (void)
{
  baz ();
}

void
foo (void)
{
  bar ();
}