Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend69.C
blob: f3086a9f980ae0030b0b32bba62c0baa5a7c5cbd [
file
] [
log
] [
blame
]
// { dg-do compile }
struct
A
;
struct
B
{
friend
struct
A
;
private
:
static
void
f
();
protected
:
static
void
g
();
};
struct
A
{
friend
void
g
(
A
)
{
B
::
f
();
// { dg-error "private" }
B
::
g
();
// { dg-error "protected" }
}
};