Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
lambda-pack-init3.C
blob: 0ed5ddf20844faede7c6b0e56a6767acf437b6d0 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
void
bar
();
void
bar
(
int
);
template
<
typename
...
Args
>
void
foo
(
Args
...
args
)
{
#if __cpp_init_captures >= 201803
auto
f
=
[...
xs
=
args
]{
bar
(
xs
...);
};
#endif
}
int
main
()
{
foo
();
foo
(
1
);
}