repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-07-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
access1.C
blob
7f2ec689290899af6262c8a3e86837452b0fbd1e
1
// 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
};