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/] [covariant11.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++/12700 ICE with covariancy
6
 
7
struct c2 { int i; };
8
 
9
struct c1 {
10
  virtual c2& f8() {};
11
};
12
 
13
struct c3 : c1, c2 {
14
  virtual c2& f8() {};
15
};
16
 
17
struct c11 : public c1 {
18
  virtual c3& f8() {};
19
};
20
 
21
struct c15 : virtual c3 {
22
  virtual c2& f8() {};
23
};
24
 
25
struct c18 : virtual c11 {
26
  virtual c15& f8();
27
};
28
 
29
c15& c18::f8() { throw 0; }

powered by: WebSVN 2.1.0

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