summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/friend4.C
blob: 5eca512e187f9d8a0207bfa8d53a040ef4f6529c (plain)
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" }
};