2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / dead1.C
blob88ae92264d05fc1baf790bc06a3910f7e8d3436e
1 // PR 6320
2 // Rechained the MUST_NOT_THROW region in the wrong order wrt the 
3 // TRY/CATCH while removing them and got confused.
4 // { dg-do compile }
6 struct S {
7   ~S();
8 };
10 void foo()
12   try {
13     return;
14   }
15   catch (int) {
16   }
17   catch (...) {
18     S s;
19   }