blob: 83fd93489f11f14590ef132164abaaf3600757bd [file] [log] [blame]
// PR c++/28606
// { dg-do compile }
struct A
{
~A A(); // { dg-error "destructor" }
};
struct B
{
A::~B B(); // { dg-error "as member of|as a type" }
};