Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if13.C
blob: 459fa132d63b4573dd6eb5637bd9f55faedde973 [
file
] [
log
] [
blame
]
// PR c++/83273
// { dg-do compile { target c++17 } }
int
main
()
{
auto
d
=
42
;
if
constexpr
(
d
>
0
)
{
// { dg-error "constant expression" }
return
d
;
}
}