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/] [covariant9.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do link }
2
// { dg-options "-w -ansi -pedantic" }
3
 
4
// Contributed by Nathan Sidwell 23 Oct 2003 
5
// Origin: grigory@stl.sarov.ru
6
// PR c++/12698. Duplicate covariant thunks emitted.
7
 
8
struct c1 {};
9
 
10
struct c0 {
11
  int i;
12
  virtual c1& f10() {};
13
};
14
 
15
struct c2 : virtual c1, c0 { };
16
 
17
struct c6 : virtual c2, c0 {
18
  virtual c2& f10() {};
19
};
20
 
21
struct c14 : virtual c2 { };
22
 
23
struct c19 : virtual ::c6 {
24
  virtual class ::c14& f10() {};
25
};
26
 
27
int main ()
28
{
29
  c19 obj;
30
}
31
 
32
 

powered by: WebSVN 2.1.0

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