blob: d3e4905db46c895a7a316f58a5611e5142d113b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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 ());
|