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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

// { dg-do run }

extern "C" void abort ();

struct A
{
  inline ~A ();
  virtual void foo () {}
};

struct B : A
{
  virtual void foo () { abort(); }
};

static inline void middleman (A *a)
{
  a->foo ();
}

inline A::~A ()
{
  middleman (this);
}

int main ()
{
   B b;
   return 0;
}

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.