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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh16.C
blob
7a985908f3ba468e9a38196b4088f5d52955abd9
1
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
2
// { dg-options "-fexceptions" }
3
4
int e = 1;
5
6
struct A {
7
~A() {
8
--e;
9
}
10
};
11
12
struct B {
13
A a;
14
B() {
15
throw 1;
16
}
17
};
18
19
int
20
main() {
21
try {
22
B b;
23
} catch (...) {
24
return e;
25
}
26
return 1;
27
}