Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.oliva / delete2.C
blob4a5cda45e6e316c813915f790c3b806ef51ddf16
1 // { dg-do run  }
2 // Copyright (C) 1999 Free Software Foundation
4 // by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5 // distilled from bug report by Barry M. Caceres <barryc@itravelpartners.com>
7 // Test whether dtors of vbases are called on delete[].
9 extern "C" void abort();
10 extern "C" void exit(int);
12 struct Foo {
13   ~Foo() {
14     exit(0);
15   }
18 struct Bar : virtual Foo {
21 int main() {
22   delete [] new Bar[1];
23   abort();