1 // PR gcov-profile/34609
2 // { dg-do compile }
3 // { dg-options "-O -ftest-coverage" }
4 
5 struct A
6 {
7   int i;
getA8   int &get () { return i; }
9 };
10 
foo()11 inline A foo ()
12 {
13   A a;
14   a.get ();
15   return a;
16 }
17 
bar()18 inline A bar ()
19 {
20   return foo ();
21 }
22 
baz()23 void baz ()
24 {
25   A a;
26   a = bar ();
27 }
28 
29 // { dg-final { cleanup-coverage-files } }
30