+2002-05-01 Mark Mitchell <mark@codesourcery.com>
+
+ * g++.dg/init/dtor1.C: New test.
+
2002-05-02 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/altivec-8.c: New.
2002-05-02 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/altivec-8.c: New.
--- /dev/null
+// { dg-do run }
+
+extern "C" void abort ();
+
+int d = 2;
+
+struct B
+{
+ int x;
+ B (int i) : x (i) { }
+ ~B () { if (d-- != x) abort (); }
+};
+
+struct A
+ : public B
+{
+ A () : B (0), x1(1), x2(2) {}
+ B x1;
+ B x2;
+};
+
+
+int main ()
+{
+ A a;
+ return 0;
+}