Debian Codegraph @

gcc/testsuite/g++.dg/other/friend7.C

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 };