* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-7.C
blob334db1837c85266e00ce2e555b861fb668be4b18
1 /* Check that Exception handler specification is not
2    mapped to the curly braces below the function
3    declaration.  */
5 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
6 /* { dg-do run { target native } } */
8 struct foo
10   foo ()
11 #if __cplusplus <= 201402L
12     throw (int)                 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
13 #endif
14     {                   /* count (-) */
15       throw (1);
16     }
19 int main ()
21   try
22     {
23       foo f;
24     }
25   catch ( ...)
26     {
27       return 0;
28     }
31 /* { dg-final { run-gcov gcov-7.C } } */