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/] [access1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// Test that we can access a member from an inaccessible base if it has
2
// been promoted with a using-declaration.
3
 
4
// { dg-do compile }
5
 
6
struct A
7
{
8
  int i;
9
};
10
 
11
struct B: private A
12
{
13
  using A::i;
14
};
15
 
16
struct C: public B
17
{
18
  void f () { B::i = 0; }
19
};

powered by: WebSVN 2.1.0

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