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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh39.C
blob
e4bfff8d17ad0cada84d1df88ce5e27dd8bbc03c
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
int fail = 1;
5
class B {
6
public:
7
B() { throw 1; }
8
};
9
class D : public B {
10
public:
11
D();
12
};
13
14
D::D() try : B() {
15
fail = 1;
16
} catch (...) {
17
fail = 0;
18
throw;
19
}
20
21
main() {
22
try {
23
D d;
24
fail = 1;
25
} catch (...) {
26
}
27
return fail;
28
}