blob: f2b27a661de543371dafc46549e2bd253c9b0305 [file] [log] [blame]
// { dg-do assemble }
// { dg-options "-fshow-column" }
struct A { // { dg-message "" } forward declaration
friend struct B : A { // { dg-error "invalid use of incomplete type 'struct A" "invalid" }
int x;
}; // { dg-error "class definition may not be declared a friend" "may not" { target *-*-* } 5 }
int y;
};