Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-variadic7.C

raw
1 // PR c++/86200
2 // { dg-do compile { target c++11 } }
3
4 template<typename ... Args>
5 static void foo()
6 {
7 [](Args, int x) { // { dg-error "packs not expanded" }
8 x;
9 };
10 }
11 int main()
12 {
13 foo();
14 }