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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17624.C] - Blame information for rev 478

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2" }
3
 
4
extern void foo (void);
5
int c;
6
void foo (int n)
7
{
8
  int j = 0;
9
  try
10
    {
11
      for(;;)
12
        {
13
          foo ();
14
          if (j ++ == n)
15
            break;
16
          foo ();
17
        }
18
    }
19
  catch (...)
20
    {
21
      c = j;
22
    }
23
}

powered by: WebSVN 2.1.0

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