Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold-lambda.C
blob: 8ccf42bedb320666da6c7b6b6fc807e367dea79a [
file
] [
log
] [
blame
]
// { dg-do run { target c++17 } }
template
<
class
...
T
>
auto
f
()
{
int
i
=
42
;
return
([
i
]{
return
T
(
i
);
}()
+
...);
}
int
main
()
{
if
(
f
<
int
,
double
>()
!=
84
)
__builtin_abort
();
}