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" }
|
|
|
class arghh {
|
class arghh {
|
public:
|
public:
|
int n;
|
int n;
|
arghh (int v) { n = v; }
|
arghh (int v) { n = v; }
|
};
|
};
|
|
|
int main () {
|
int main () {
|
try {
|
try {
|
throw arghh (11);
|
throw arghh (11);
|
}
|
}
|
catch (arghh& a) {
|
catch (arghh& a) {
|
if (a.n != 11)
|
if (a.n != 11)
|
return 1;
|
return 1;
|
}
|
}
|
try {
|
try {
|
throw arghh (22);
|
throw arghh (22);
|
}
|
}
|
catch (arghh& a) {
|
catch (arghh& a) {
|
if (a.n != 22)
|
if (a.n != 22)
|
return 2;
|
return 2;
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.