Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if18.C
blob: a5601176be139b8489cf9c5e49f158198b465cf2 [
file
] [
log
] [
blame
]
// PR c++/85200
// { dg-do compile { target c++17 } }
template
<
typename
T
>
void
f
(){
[](
auto
v
,
auto
b
){
if
constexpr
(
sizeof
(
v
)
==
sizeof
(
int
))
{
auto
x
=
b
;
}
}(
0
,
1
);
}
int
main
(){
f
<int>
();
}