* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-6.C
blob53a2b20bfd5370badfcd9d3bef3fad0337f15e6d
1 // PR gcov-profile/34609
2 // { dg-do compile }
3 // { dg-options "-O -ftest-coverage" }
5 struct A
7   int i;
8   int &get () { return i; }
9 };
11 inline A foo ()
13   A a;
14   a.get ();
15   return a;
18 inline A bar ()
20   return foo ();
23 void baz ()
25   A a;
26   a = bar ();
29 // { dg-final { cleanup-coverage-files } }