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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [covariant10.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Contributed by Nathan Sidwell 23 Oct 2003 
4
// Origin: grigory@stl.sarov.ru
5
// PR c++/12699 ICE with covariancy
6
 
7
struct c1 {
8
  virtual void f1() const {};
9
};
10
 
11
struct c5 {};
12
 
13
struct c6 : virtual c1 {
14
  virtual c5* f33() const {};
15
};
16
 
17
struct c13 : virtual c5 { };
18
 
19
struct c17 : virtual c6
20
{
21
  virtual c13* f33() const {};
22
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.