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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20081217-2_0.C] - Rev 801

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

struct A {
  virtual int foo() {}
};
struct B {
  virtual int f() {return 1; }
};
struct C : public A, public B  {
  C();
  virtual int f() { return 0; }
};

C::C()
{
}

main()
{
  C c;
  return c.f();
}

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.