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" }
};