2 // { dg-options "-fshow-column" }
4 struct A { // { dg-message "" } forward declaration
5 friend struct B : A { // { dg-error "invalid use of incomplete type 'struct A" "invalid" }
7 }; // { dg-error "class definition may not be declared a friend" "may not" { target *-*-* } 5 }