2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / debug6.C
bloba4d088413e42750e7570d0f2d5e8f65e9816796a
1 // { dg-do assemble  }
2 // { dg-options "-g -O2" }
4 //  Copyright (C) 1999 Free Software Foundation, Inc.
5 //  Contributed by Nathan Sidwell 21 Nov 1999 <nathan@acm.org>
7 // This causes assember relocation errors
9 struct X
11   virtual ~X () {}
14 struct Y
16   Y (){};
19 void foo ()
21   X *x = new X;
22   x->~X ();
23   Y ys[2];