c++: Fix C++20 variadic lambda init-capture grammar.
[gcc.git] / gcc / testsuite / g++.dg / cpp2a / lambda-pack-init4.C
1 // P2095R0
2 // { dg-do compile { target c++2a } }
3 // { dg-options "" }
4
5 template <class... T>
6 void f(T... t)
7 {
8 [&...x=t]{};
9 [...&x=t]{}; // { dg-warning "7:&" }
10 }