URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// The standard sez that a use of a name gets the most access it can through
|
// The standard sez that a use of a name gets the most access it can through
|
// the various paths that can reach it. Here, the access decl in B gives
|
// the various paths that can reach it. Here, the access decl in B gives
|
// us access.
|
// us access.
|
|
|
struct A
|
struct A
|
{
|
{
|
void f ();
|
void f ();
|
};
|
};
|
|
|
struct B: private virtual A
|
struct B: private virtual A
|
{
|
{
|
A::f;
|
A::f;
|
};
|
};
|
|
|
struct C: private virtual A, public B
|
struct C: private virtual A, public B
|
{
|
{
|
};
|
};
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
C c;
|
C c;
|
|
|
c.f ();
|
c.f ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.