Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
visibility7.C
blob: 58886d630e413c472da44969884227aba6cc3ccd [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed visibility
class
X
{
public
:
void
fn
();
// { dg-message "" } .*
};
class
Y
:
private
X
{};
class
Unrelated
{
public
:
void
foo
()
{
Y y
;
y
.
fn
();
}
// { dg-error "" } .*
};