blob: 749be2a2322a26f656a02762f650e579ff07749b [file] [log] [blame]
// PR middle-end/96194
// { dg-do compile }
// { dg-options "-O2" }
#include <new>
struct A { ~A (); };
struct B : A { float e[64]; };
B *
foo ()
{
return new ((void *) 0) B ();
}
B *
bar (void *x, bool y)
{
void *p = y ? x : (void *) 0;
return new (p) B ();
}