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();
}