OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr43801.C] - Rev 301

Compare with Previous | Blame | View Log

// PR tree-optimization/43801
// { dg-do compile }
// { dg-options "-fipa-cp -fipa-cp-clone" }

struct A
{
  virtual void f (int);
};
struct B : virtual A
{
  virtual void f (int i) { if (i) A::f(0); }
};
struct C : virtual B
{
  virtual void f (int) { B::f(0); }
};

void
foo ()
{
  C ();
}

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.