FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / delete5.C
blobafeb153ffcbdf900c39380a4e74773f9fde84786
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 auto array.
6 // Variant of delete2.C, delete3.C and delete4.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 void foo() {
21   Bar i[1];
24 int main() {
25   foo();
26   abort();