blob: 3289d975d58b8d37fb24a4d1c1b6ecae28434ece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
class foo {
public:
class error {};
void cause_error(void) { throw "Hello World!"; }
};
int main(void)
{
foo f;
try {
f.cause_error();
}
catch (const char cp[]) {
return 0;
}
return 1;
}
|