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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [covariant2.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 12 Dec 2003 
5
// Origin: grigory@stl.sarov.ru
6
 
7
// PR c++/12881. ICE in thunk generation
8
 
9
struct c1 {};
10
 
11
struct c3 : virtual c1
12
{
13
    virtual c1* f6() {}
14
    int i;
15
};
16
 
17
struct c6 : virtual c3 { };
18
 
19
struct c7 : c3
20
{
21
    virtual c3* f6() {}
22
};
23
 
24
struct c24 : virtual c7
25
{
26
    virtual c6* f6();
27
};
28
 
29
c6* c24::f6() {  return 0; }
30
 
31
struct c31 : c24 {};
32
 

powered by: WebSVN 2.1.0

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