summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline10.C
blob: cd24157530aff3bcecfd6497ae4db233c6a8587a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// { dg-options "-O2" }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S
{
};

inline const S f () 
{
  return S ();
}

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