Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-new14.C
blob: 26037397b1d4f5ad23785df3ef83720a6e798ce7 [
file
] [
log
] [
blame
]
// PR c++/97195
// { dg-do compile { target c++20 } }
#include
"construct_at.h"
constexpr
bool
foo
()
{
int
a
=
5
;
int
*
p
=
std
::
construct_at
(&
a
,
-
1
);
if
(
p
[
0
]
!=
-
1
)
throw
1
;
return
true
;
}
constexpr
bool
b
=
foo
();