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++.old-deja/] [g++.other/] [eh3.C] - Blame information for rev 305

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// { dg-options "-O" }
3
typedef struct { } e;
4
 
5
char *p;
6
 
7
void _Jv_throw ();
8
 
9
int barf (int len)
10
{
11
  char a[len];
12
 
13
  p = a;
14
  _Jv_throw ();
15
  return 0;
16
}
17
 
18
void _Jv_throw ()
19
{
20
  e ex;
21
  throw ex;
22
}
23
 
24
int main ()
25
{
26
  try  {
27
    barf (2);
28
  }
29
  catch (...) {
30
  }
31
 
32
  return 0;
33
}

powered by: WebSVN 2.1.0

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