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 |
// { dg-do compile }
|
// { dg-do compile }
|
|
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Copyright (C) 2002 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 27 Dec 2002
|
// Contributed by Nathan Sidwell 27 Dec 2002
|
|
|
// We ICE'd
|
// We ICE'd
|
|
|
struct c0 {};
|
struct c0 {};
|
|
|
struct c1 : virtual c0
|
struct c1 : virtual c0
|
{
|
{
|
virtual c0 &f2() volatile;
|
virtual c0 &f2() volatile;
|
};
|
};
|
|
|
struct c2
|
struct c2
|
{
|
{
|
int m;
|
int m;
|
};
|
};
|
|
|
struct c3 : virtual c0, virtual c1, c2
|
struct c3 : virtual c0, virtual c1, c2
|
{
|
{
|
virtual c1 &f2() volatile;
|
virtual c1 &f2() volatile;
|
};
|
};
|
|
|
struct c4 : virtual c3, virtual c0, virtual c1
|
struct c4 : virtual c3, virtual c0, virtual c1
|
{
|
{
|
int m;
|
int m;
|
};
|
};
|
|
|
struct c6 : c0, c3, c4
|
struct c6 : c0, c3, c4
|
{ // { dg-warning "direct base" "" }
|
{ // { dg-warning "direct base" "" }
|
virtual c1 &f2() volatile;
|
virtual c1 &f2() volatile;
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.