blob: 9cc5596c358bc02caa8bcc98343d9d0cba05b0ca [file] [log] [blame]
// { dg-lto-do link }
// { dg-lto-options { { -flto -std=c++11 } } }
// { dg-extra-ld-options "-r -nostdlib -O2" }
class Validator
{
public:
virtual ~Validator ();
};
class FooWriter
{
Validator *validator;
~FooWriter ();
};
FooWriter::~FooWriter () { delete validator; }