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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh3.C
blob
8c9ddb4563f717cd25777fd5459ac19908d53b21
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 error(); }
9
};
10
11
int main(void)
12
{
13
foo f;
14
try {
15
f.cause_error();
16
}
17
catch (foo::error&) {
18
return 0;
19
}
20
return 1;
21
}