Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ49.C

raw
1 // PR c++/66786
2 // { dg-do compile { target c++14 } }
3
4 int f (int, bool);
5
6 template <typename>
7 auto list = [](auto... xs) { return [=](auto f, auto... ys) { return f(xs..., ys...); }; };
8
9 const int &a = list<int>(0)(f, true);