fortran/openmp.cc: Fix var init and locus use to avoid uninit values [PR fortran...
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-variadic10.C
blobab790cf8c9c8de59ffaffb1258b8868e5311f4b1
1 // PR c++/84182
2 // { dg-do compile { target c++14 } }
4 template < typename ... T > void sink(T ...){}
6 template < typename >
7 void f(){
8     auto const lambda = [](int){ return 1; };
10     [lambda](auto ... i){
11         sink(lambda(i) ...);
12     }(1);
15 int main(){
16     f< int >();