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-7.C] - Blame information for rev 783

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* Check that Exception handler specification is not
2
   mapped to the curly braces below the function
3
   declaration.  */
4
 
5
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
6
/* { dg-do run { target native } } */
7
 
8
struct foo
9
{
10
  foo () throw (int)
11
    {                   /* count (-) */
12
      throw (1);
13
    }
14
};
15
 
16
int main ()
17
{
18
  try
19
    {
20
      foo f;
21
    }
22
  catch ( ...)
23
    {
24
      return 0;
25
    }
26
}
27
 
28
/* { dg-final { run-gcov gcov-7.C } } */

powered by: WebSVN 2.1.0

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