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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
compat
/
eh
/
filter2_y.C
blob
87c6fea101272584cc4b51b5dc8ec2ff1bbb0a8a
1
#include <exception>
2
#include <cstdlib>
3
4
struct e1 {};
5
struct e2 {};
6
7
struct a
8
{
9
a () { }
10
11
~a ()
12
{
13
try
14
{
15
throw e1();
16
}
17
catch (e2 &)
18
{
19
}
20
}
21
};
22
23
void
24
ex_test ()
25
{
26
a aa;
27
try
28
{
29
throw e1 ();
30
}
31
catch (e2 &)
32
{
33
}
34
}
35
36
void my_terminate ()
37
{
38
std::exit (0);
39
}