Merge branches/gcc-4_9-branch rev 225109.
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / g++.dg / gcov / gcov-15.C
blobfcd16b00b1c40dc084a97eb52b6ea2bc6ca643e4
1 // PR gcov-profile/64634
2 // { dg-options "-fprofile-arcs -ftest-coverage" }
3 // { dg-do run { target native } }
5 void catchEx ()         // count(1)
7   __builtin_exit (0);   // count(1)
8   try
9   {}
10   catch (int)
11   {}
14 int main ()             // count(1)
16   try
17   {
18     throw 5;            // count(1)
19   }
20   catch (...)           // count(1)
21   {
22     catchEx ();         // count(1)
23   }
26 // { dg-final { run-gcov gcov-15.C } }