☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
parse
/
friend4.C
☽
☼
gcc/testsuite/g++.dg/parse/friend4.C
code
plain
raw
1
// { dg-do compile }
2
3
// PR c++/4100
4
// You can't use friend when defining a class.
5
6
class A {
7
friend class B { }; // { dg-error "friend" }
8
};