blob: 64e0e2dae7f59cd6629142d1d67f74da3f99ef9c [file] [log] [blame]
// { dg-do compile }
// { dg-additional-options "-O3 -fno-tree-forwprop -fcompare-debug" }
struct S {
virtual ~S();
struct S *s;
virtual void m();
int f;
void *d;
};
struct T : S {
void m();
};
S::~S() {
if (s) {
s->f = 0;
s->d = __null;
}
}
void T::m() {}