c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-variadic14.C
blob76567966293e2443cc981a5ffaf7a5e8f1da51cd
1 // PR c++/84368
2 // { dg-do compile { target c++14 } }
4 template < typename ... T >
5 void sink(T ...){}
7 template < typename ... T >
8 void foo(T ... v){
9     [](auto ... v){
10         auto bar = [](auto, auto){ return 0; };
11         sink(bar(v, T{}) ...);
12     }(v ...);
15 int main(){
16     foo(0);