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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [virtual7.C] - Rev 693

Compare with Previous | Blame | View Log

// Origin: PR c++/47666
// { dg-do compile }

template <typename T>
struct A
{
  int a;
};

template <typename T>
struct B : public A <T>
{
};

class D : public B <D *>
{
  virtual D & operator= (const D &);
};

class E : virtual public D
{
};

class F : public E
{
  virtual void foo ();
};

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.