]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/gcov/gcov-13.C
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / gcov / gcov-13.C
1 /* { dg-options "-fprofile-arcs -ftest-coverage" } */
2 /* { dg-do run { target native } } */
3
4 void Baz (int i)
5 {
6 if (i)
7 throw 1;
8 }
9
10 void Boz () throw ()
11 {
12 }
13
14 int main ()
15 {
16 try
17 {
18 Baz (0); /* count(1) */
19 Baz (0); /* count(1) */
20 }
21 catch (...)
22 {
23 Boz (); /* count(=====) */
24 }
25
26 try
27 {
28 Baz (1); /* count(1) */
29 Baz (0); /* count(#####) */
30 }
31 catch (...)
32 {
33 Boz (); /* count(1) */
34 }
35
36 return 0; /* count(1) */
37 }
38
39 /* { dg-final { run-gcov gcov-13.C } } */