OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gcov/] [gcov-13.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { 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 } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.