Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.eh / inline2.C
blob356c85a7ce2f82a7c9d472094c3896eae2f0e9fc
1 // { dg-do run  }
2 // { dg-options "-O" }
3 // Test that inlining a destructor with a catch block doesn't confuse the
4 // enclosing try block.
6 struct A {
7   ~A()
8   {
9     try { throw 1; }
10     catch (...) { }
11   }
14 int main ()
16   try
17     {
18       A a;
19       throw 42;
20     }
21   catch (int i)
22     {
23       return (i != 42);
24     }