Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-new16.C
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
());