summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C
blob: eec11ab003392080e7a4cac6446bb4069449cc57 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// { dg-options "-fshow-column" }

struct A { // { dg-error "" } forward declaration
  friend struct B : A {		// { dg-error "invalid use of incomplete type 'struct A" }
    int x;
  };	// { dg-error "class definition may not be declared a friend" ""  { target *-*-* } { 5 } }
  int y;
};