Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/debug6.C

raw
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 <[email protected]>
6
7 // This causes assember relocation errors
8
9 struct X
10 {
11 virtual ~X () {}
12 };
13
14 struct Y
15 {
16 Y (){};
17 };
18
19 void foo ()
20 {
21 X *x = new X;
22 x->~X ();
23 Y ys[2];
24 }