Sign in
gnu
/
gcc
/
8353b540e6bf07bc4de944da9c3772c619f86a9c
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
visibility1.C
blob: 784c16772ea88c841e0311a92f651d197dfbab72 [
file
] [
log
] [
blame
]
// Build don't link:
// GROUPS passed visibility
class
foo
{
protected
:
int
i
;
// ERROR - protected
};
class
bar
:
public
foo
{
public
:
friend
void
baz
(
foo
*);
};
void
baz
(
foo
*
f
)
{
f
->
i
=
1
;
// error: i is protected// ERROR - .*
}