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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gcov/] [gcov-11.C] - Diff between revs 693 and 783

Only display areas with differences | Details | Blame | View Log

Rev 693 Rev 783
/* Check that unexecuted exception processing regions are shown
/* Check that unexecuted exception processing regions are shown
   distinct from  unexecuted normal regions.  */
   distinct from  unexecuted normal regions.  */
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-do run { target native } } */
/* { dg-do run { target native } } */
void Baz (int i)
void Baz (int i)
{
{
  if (i)
  if (i)
    throw 1;
    throw 1;
}
}
void Boz () throw ()
void Boz () throw ()
{
{
}
}
int main ()
int main ()
{
{
  try
  try
    {
    {
      Baz (0);  /* count (1) */
      Baz (0);  /* count (1) */
      Baz (0);  /* count (1) */
      Baz (0);  /* count (1) */
    }
    }
  catch (...)
  catch (...)
    {
    {
      Boz ();  /* count (=====) */
      Boz ();  /* count (=====) */
    }
    }
  try
  try
    {
    {
      Baz (1);  /* count (1) */
      Baz (1);  /* count (1) */
      Baz (0);  /* count (#####) */
      Baz (0);  /* count (#####) */
    }
    }
  catch (...)
  catch (...)
    {
    {
      Boz ();  /* count (1) */
      Boz ();  /* count (1) */
    }
    }
  return 0;  /* count (1) */
  return 0;  /* count (1) */
}
}
/* { dg-final { run-gcov gcov-11.C } } */
/* { dg-final { run-gcov gcov-11.C } } */
 
 

powered by: WebSVN 2.1.0

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