* g++.dg/cpp1y/lambda-generic-variadic2.C: Fix.

From-SVN: r218987
This commit is contained in:
Jason Merrill 2014-12-19 20:42:51 -05:00
parent a7fa8d1819
commit 42e99e70e6

View File

@ -1,5 +1,6 @@
// PR c++/64105
// This test was ICEing on pre-C++14 mode.
// This test was ICEing in C++11 mode.
// { dg-do compile { target c++11 } }
#include <functional>
@ -18,5 +19,5 @@ struct X
int main()
{
X::f([](auto... xs){}); // { dg-error "" "" { target { ! cxx14 } } }
};
X::f([](auto... xs){}); // { dg-error "" "" { target { ! c++14 } } }
}