blob: cf81e69808986bbe17eaaef5fd339134231bc983 [file] [log] [blame]
// PR c++/33709
// { dg-do compile }
// { dg-options "-O2" }
class S {
virtual void foo ();
};
struct T {
S *s;
void bar (unsigned x) { s = (new S[1]) - x; }
};