summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor11.C
blob: 63ffb60bac107dfe2f8f5d9d138ac4d91de01592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/28606
// { dg-do compile }

struct A
{
  ~A A();     // { dg-error "destructor" }
};

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