blob: d3e4905db46c895a7a316f58a5611e5142d113b9 [file] [log] [blame]
// PR c++/98988
// { dg-do compile { target c++20 } }
// { dg-options "-fno-delete-null-pointer-checks" }
constexpr bool
foo ()
{
auto ptr = new int();
delete ptr;
return true;
}
static_assert (foo ());