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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
eh40.C
blob
e42b419747a9b83e32d55f1c6203e789fe069ecc
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() try : B() {
12
fail = 1;
13
} catch (char c) {
14
fail = 1;
15
throw;
16
} catch (...) {
17
fail = 0;
18
throw;
19
}
20
};
21
22
main() {
23
try {
24
D d;
25
fail = 1;
26
} catch (...) {
27
}
28
return fail;
29
}