Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
friend4.C
blob: 5eca512e187f9d8a0207bfa8d53a040ef4f6529c [
file
] [
log
] [
blame
]
// { dg-do compile }
// PR c++/4100
// You can't use friend when defining a class.
class
A
{
friend
class
B
{
};
// { dg-error "friend" }
};