* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-13.C
blobc262a71f536472f940a5280fed394454eb241e76
1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
4 void Baz (int i)
6   if (i)
7     throw 1;
10 void Boz () throw ()
14 int main ()
16   try
17     {
18       Baz (0);  /* count(1) */
19       Baz (0);  /* count(1) */
20     }
21   catch (...)
22     {
23       Boz ();  /* count(=====) */
24     }
26   try
27     {
28       Baz (1);  /* count(1) */
29       Baz (0);  /* count(#####) */
30     }
31   catch (...)
32     {
33       Boz ();  /* count(1) */
34     }
36   return 0;  /* count(1) */
39 /* { dg-final { run-gcov gcov-13.C } } */