repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh5.C
blob
4ece5889279ad78ad652072fe294a91df3b142cf
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
class foo {
5
public:
6
class error {};
7
8
void cause_error(void) { throw "Hello World!"; }
9
};
10
11
int main(void)
12
{
13
foo f;
14
try {
15
f.cause_error();
16
}
17
catch (const char cp[]) {
18
return 0;
19
}
20
return 1;
21
}