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/] [covariant13.C] - Rev 149

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

// Copyright (C) 2004 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 8 May 2005<nathan@codesourcery.com>

// Origin:Andrew Pinski: pinskia@gcc.gnu.org
// PR 21427: ICE on valid

struct B1 { 
  public: 
    virtual void foo(); 
}; 
 
struct B2 { 
  public: 
    virtual B2 & bar() = 0; 
}; 
 
struct I : public B1, B2 { 
  public: 
    virtual ~I(); 
    virtual I & bar(); 
}; 
 
struct D : public I { 
    virtual ~D(); 
}; 

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.