summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor8.C
blob: 2fe0a974bb97e3d48c8b3f7a159cc5b633704013 (plain)
1
2
3
4
5
6
7
8
// { dg-do compile }

struct A {};

struct B
{
  friend A::~B();  // { dg-error "as member of" }
};