1 2 3 4 5 6 7 8
// { dg-do compile } // PR c++/4100 // You can't use friend when defining a class. class A { friend class B { }; // { dg-error "friend" } };