summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/friend5.C
blob: b0ec201fb38738d8cb50ecd4a3f6f4bf840e7381 (plain)
1
2
3
4
5
6
7
8
9
/* PR c++/32111 */
/* This used to ICE. */

/* { dg-do compile } */

struct A
{
  friend A::~A() {} /* { dg-error "implicitly friends of their class" } */
};