Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 void swallow(...) {}
4 template<int... Is>
5 void foo() {
6 int t = 0;
7 swallow(
8 ([&t]{return 0;}(), Is)...
9 );
10 }
11
12 int main()
13 {
14 foo<1, 2>();
15 return 0;
16 }