URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
|
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
|
// { dg-options "-fexceptions" }
|
// { dg-options "-fexceptions" }
|
|
|
class foo {
|
class foo {
|
public:
|
public:
|
class error {};
|
class error {};
|
|
|
void cause_error(void) { throw "Hello World!"; }
|
void cause_error(void) { throw "Hello World!"; }
|
};
|
};
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
foo f;
|
foo f;
|
try {
|
try {
|
f.cause_error();
|
f.cause_error();
|
}
|
}
|
catch (const char cp[]) {
|
catch (const char cp[]) {
|
return 0;
|
return 0;
|
}
|
}
|
return 1;
|
return 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.