FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / destruct2.C
blob09b6bdd7991752dce36c6043333ce447601975fe
1 // PRMS Id: 4342
2 // Bug: g++ does not massage things enough to allow calling ~X().
3 // Build don't link:
5 struct X 
7     virtual ~X ();
8 };
10 struct Y : public X
11 {};
13 struct Z : public Y, public X
14 {};                             // WARNING - 
16 void foo ()
18     Z* f = new Z;
19     delete f;                   // gets bogus error -