Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if30.C
blob: 1e3d15dca1cb79c22944dfc8cc6980b23dd02d4d [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
auto
fn
=
[](
auto
i
)
{
if
constexpr
(
sizeof
(
i
)
==
1
)
return
fn
(
123
);
// { dg-error "auto" }
};
int
main
()
{
fn
(
'!'
);
}