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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr17624.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 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.