URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do run }
|
// { dg-do run }
|
// { dg-options "-O" }
|
// { dg-options "-O" }
|
typedef struct { } e;
|
typedef struct { } e;
|
|
|
char *p;
|
char *p;
|
|
|
void _Jv_throw ();
|
void _Jv_throw ();
|
|
|
int barf (int len)
|
int barf (int len)
|
{
|
{
|
char a[len];
|
char a[len];
|
|
|
p = a;
|
p = a;
|
_Jv_throw ();
|
_Jv_throw ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
void _Jv_throw ()
|
void _Jv_throw ()
|
{
|
{
|
e ex;
|
e ex;
|
throw ex;
|
throw ex;
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
try {
|
try {
|
barf (2);
|
barf (2);
|
}
|
}
|
catch (...) {
|
catch (...) {
|
}
|
}
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.