FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / destruct3.C
blobd4bbf9ad79087bb4597b9f517cb18c4fe8b7577e
1 // Special g++ Options: -w
2 // PRMS Id: 4342 (second testcase)
3 // Bug: g++ still can't deal with ambiguous inheritance in destructor calls.
4 // Build don't link:
6 struct ccUnwind 
8     ccUnwind ();
9     virtual ~ccUnwind ();
12 struct ccPersistent
14     virtual void bar();
17 struct ccImpExp : public ccPersistent, public ccUnwind
18 {};
20 struct ccTool : public ccImpExp
21 {};
23 struct ccScreenTool : public ccTool
24 {};
26 struct ccVTool : public ccScreenTool
27 {};
29 struct ccScreenObjRep : public ccUnwind
30 {};
32 struct ccScreenObj : public ccScreenObjRep
33 {};
35 struct ccVSTool : public ccImpExp, public ccUnwind 
36 {};
38 struct ccSCCP : public ccVSTool
39 {};
41 void foo ()
43     ccSCCP* foo = new ccSCCP;
44     delete foo;