URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/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" }
|
|
|
int fail = 1;
|
int fail = 1;
|
class B {
|
class B {
|
public:
|
public:
|
B() { throw 1; }
|
B() { throw 1; }
|
};
|
};
|
class D : public B {
|
class D : public B {
|
public:
|
public:
|
D();
|
D();
|
};
|
};
|
|
|
D::D() try : B() {
|
D::D() try : B() {
|
fail = 1;
|
fail = 1;
|
} catch (...) {
|
} catch (...) {
|
fail = 0;
|
fail = 0;
|
throw;
|
throw;
|
}
|
}
|
|
|
main() {
|
main() {
|
try {
|
try {
|
D d;
|
D d;
|
fail = 1;
|
fail = 1;
|
} catch (...) {
|
} catch (...) {
|
}
|
}
|
return fail;
|
return fail;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.