Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / destruct3.C
blob3dc287c7489577e465c796002a9b90423500f6e7
1 // { dg-do assemble  }
2 // { dg-options "-w" }
3 // PRMS Id: 4342 (second testcase)
4 // Bug: g++ still can't deal with ambiguous inheritance in destructor calls.
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;