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

Subversion Repositories openrisc

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

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

// { dg-do link }
// { dg-options "-w -ansi -pedantic" }

// Contributed by Nathan Sidwell 23 Oct 2003 <nathan@codesourcery.com>
// Origin: grigory@stl.sarov.ru
// PR c++/12698. Duplicate covariant thunks emitted.

struct c1 {};

struct c0 {
  int i;
  virtual c1& f10() {}
};

struct c2 : virtual c1, c0 { };

struct c6 : virtual c2, c0 {
  virtual c2& f10() {}
};

struct c14 : virtual c2 { };

struct c19 : virtual ::c6 {
  virtual class ::c14& f10() {}
};

int main ()
{
  c19 obj;
}

  

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.