FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / delete4.C
blob18ce2d3c3c17bb221b9e3b53aa811a626f0fd6c7
1 // Copyright (C) 1999 Free Software Foundation
3 // by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5 // Test whether dtors of vbases are called from dtor of aggregate of array.
6 // Variant of delete2.C and delete3.C.
8 extern "C" void abort();
9 extern "C" void exit(int);
11 struct Foo {
12   ~Foo() {
13     exit(0);
14   }
17 struct Bar : virtual Foo {
20 struct Baz {
21   Bar i[1];
24 int main() {
25   Baz();
26   abort();