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