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 384 |
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
|
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
|
// { dg-options "-fexceptions" }
|
// { dg-options "-fexceptions" }
|
|
|
int count;
|
int count;
|
|
|
class Foo {
|
class Foo {
|
public:
|
public:
|
Foo() { ++count; }
|
Foo() { ++count; }
|
Foo(const Foo&) { ++count; }
|
Foo(const Foo&) { ++count; }
|
~Foo() { --count; }
|
~Foo() { --count; }
|
};
|
};
|
|
|
|
|
main() {
|
main() {
|
try {
|
try {
|
throw Foo();
|
throw Foo();
|
}
|
}
|
catch (Foo& object) {
|
catch (Foo& object) {
|
if (count == 1)
|
if (count == 1)
|
return 0;
|
return 0;
|
}
|
}
|
return 1;
|
return 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.