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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [access3.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// The standard sez that a use of a name gets the most access it can through
3
// the various paths that can reach it.  Here, the access decl in B gives
4
// us access.
5
 
6
struct A
7
{
8
  void f ();
9
};
10
 
11
struct B: private virtual A
12
{
13
  A::f;
14
};
15
 
16
struct C: private virtual A, public B
17
{
18
};
19
 
20
int
21
main ()
22
{
23
  C c;
24
 
25
  c.f ();
26
}

powered by: WebSVN 2.1.0

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