OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p4736a.C] - Rev 749

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do run  }
// prms-id: 4736

int did_fail = 1;

class O {
public:
  virtual void of() { }
};

class A : public O {
public:
  virtual void vf() { }
};

class W {
public:
  virtual void vf() { }
};

class X : public W, public A {
public:
  virtual void vf() { }
};

class Z : public X {
public:
  virtual void vf() { did_fail = 0; }
};

Z sz;

void fail1(W* w) {
  w->vf();
}

int main() {
  fail1 (&sz);
  return did_fail;
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.