blob: 291228764012626876743814909c9c6a3eb78956 [file] [log] [blame]
// PR c++/12333
struct A { };
struct X {
void f () {
X::~X ();
this->~X();
~X(); // { dg-error "" "unary ~" }
A::~A (); // { dg-error "" }
X::~A (); // { dg-error "" }
}
};