1 // { dg-do assemble  }
2 // { dg-options "-g -O2" }
3 
4 //  Copyright (C) 1999 Free Software Foundation, Inc.
5 //  Contributed by Nathan Sidwell 21 Nov 1999 <nathan@acm.org>
6 
7 // This causes assember relocation errors
8 
9 struct X
10 {
~XX11   virtual ~X () {}
12 };
13 
14 struct Y
15 {
YY16   Y (){};
17 };
18 
foo()19 void foo ()
20 {
21   X *x = new X;
22   x->~X ();
23   Y ys[2];
24 }
25