blob: dd5ff84bfe4381d9da06e7b28bd3d936baadf6b1 [file] [log] [blame]
// { dg-do compile { target c++11 } }
// PR78469, bogus error about inaccessible dtor.
struct no_destr {
no_destr() = default;
protected:
~no_destr() = default;
};
void *Foo ()
{
return new no_destr ();
}