URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Copyright (C) 2005 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 18 Oct 2005
|
// Contributed by Nathan Sidwell 18 Oct 2005
|
|
|
// PR 22604
|
// PR 22604
|
// Origin: Volker Reichelt
|
// Origin: Volker Reichelt
|
|
|
struct A;
|
struct A;
|
|
|
struct B
|
struct B
|
{
|
{
|
virtual A* foo(); // { dg-error "overriding" "" }
|
virtual A* foo(); // { dg-error "overriding" "" }
|
};
|
};
|
|
|
namespace N
|
namespace N
|
{
|
{
|
struct A : B
|
struct A : B
|
{
|
{
|
virtual A* foo(); // { dg-error "invalid covariant" "" }
|
virtual A* foo(); // { dg-error "invalid covariant" "" }
|
};
|
};
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.