]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C
merge in cxx0x-lambdas-branch@152308
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-mixed.C
1 // { dg-do "run" }
2 // { dg-options "-std=c++0x" }
3 #include <cassert>
4
5 int main() {
6 int i = 1, j = 2;
7 [&i, j] () mutable -> void { i = 0; j = 0; } ();
8 assert(i == 0);
9 assert(j == 2);
10
11 return 0;
12 }
13