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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
visibility6.C
blob
3dfaf7fd0ea2331354f7d07cc4b1f12e6102fdec
1
// { dg-do assemble }
2
// GROUPS passed visibility
3
class bottom
4
{
5
public:
6
int b; // { dg-message "" } private
7
};
8
class middle : private bottom
9
{
10
public:
11
void foo () { b; }
12
};
13
class top : public middle
14
{
15
public:
16
void bar () { b; }// { dg-error "" } .*
17
};