Debian Codegraph @

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

raw
1 /* PR c++/32111 */
2 /* This used to ICE. */
3
4 /* { dg-do compile } */
5
6 struct A
7 {
8 friend A::~A() {} /* { dg-error "3:member functions are implicitly friends of their class" } */
9 };