Debian Codegraph @

gcc/testsuite/g++.dg/gcov/gcov-15.C

raw
1 // PR gcov-profile/64634
2 // { dg-options "-fprofile-arcs -ftest-coverage" }
3 // { dg-do run { target native } }
4
5 void catchEx () // count(1)
6 {
7 __builtin_exit (0); // count(1)
8 try
9 {}
10 catch (int)
11 {}
12 }
13
14 int main () // count(1)
15 {
16 try
17 {
18 throw 5; // count(1)
19 }
20 catch (...) // count(1)
21 {
22 catchEx (); // count(1)
23 }
24 }
25
26 // { dg-final { run-gcov gcov-15.C } }