2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / vbase2.C
blob812b54764e533d263596cea29521e510f1936d24
1 // { dg-do run  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 int i;
6 struct A
8   ~A ();
9 };
11 A::~A () {
12   i = 1;
15 struct B : virtual public A {
18 struct C {
19   C ();
21   B b;
24 C::C () {
25   throw 3;
28 int main () 
30   try { 
31     C c;
32   } catch (...) {
33   }
35   if (i != 1)
36     return 1;