Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / p10148.C
blob2cb359c9b9a82a298bf672443db2535a49f4844e
1 // { dg-do run  }
2 // { dg-options "" }
3 // prms-id: 10148
5 int fail = 1;
6 void ok() { fail = 0; }
8 class TC {
9   int s_;
12 class TIRD {
13  public:
14   void (*itc)();
15   TIRD() { itc = ok; }
18 class TCCB : public TC, public TIRD {
21 class TCRCB : public TCCB {
22 public:
23   virtual void eat ();
26 void TCRCB::eat () {
27  void *vp = (void *)((TIRD*)this)->itc;
28  this->itc();
31 int main() {
32   TCRCB a;
33   a.eat();
34   return fail;