blob: 4f6e8193a52abea9c793f1fc216ab5412007c2b6 [file] [log] [blame]
// PR c++/99031
// { dg-do compile { target c++20 } }
constexpr bool
foo ()
{
auto a = new int;
auto b = new int;
bool r = a == b;
delete b;
delete a;
return r;
}
static_assert (!foo ());