☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
friend7.C
☽
☼
gcc/testsuite/g++.dg/other/friend7.C
code
plain
raw
1
// PR c++/79899
2
3
// { dg-do compile }
4
// { dg-options "-Os" }
5
6
struct A
7
{
8
friend A::~A() {} // { dg-error "3:member functions are implicitly friends of their class" }
9
};