* g++.dg/cpp1y/lambda-generic-variadic2.C: Fix.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-variadic2.C
blobc70cc8d7747c56f8947310c9be7784c6c379d2ba
1 // PR c++/64105
2 // This test was ICEing in C++11 mode.
3 // { dg-do compile { target c++11 } }
5 #include <functional>
7 using F = std::function<void(void)>;
9 struct X
11   template <typename T>
12   static void f(T t)
13   {
14     g(t);
15   }
17   static void g(F) {}
20 int main()
22   X::f([](auto... xs){});       // { dg-error "" "" { target { ! c++14 } } }