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
/
eh17.C
blob
c96c344de7ea13c5ef9a9639a83188e58536c617
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
int err = 1;
5
6
struct A {
7
~A() {
8
--err;
9
}
10
};
11
12
struct B : public A {
13
B() {
14
throw 1;
15
}
16
};
17
18
main() {
19
try {
20
B b;
21
} catch (...) {
22
return err;
23
}
24
return 1;
25
}