Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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" }
};