summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/inline2.C
blob: 6e6889fc7b71d0f4756fdb6e903f72bb139a1094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do link }
// { dg-options "-O1 -finline-functions" }

static void g ();

void f()
{
  void g();
  g();
}

void g()
{
}

int main () {
  f ();
}