Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-mixed.C
blobd3f434195ea9903756759eab275a4941e6a82dfe
1 // { dg-do run { target c++11 } }
2 #include <cassert>
4 int main() {
5   int i = 1, j = 2;
6   [&i, j] () mutable -> void { i = 0; j = 0; } ();
7   assert(i == 0);
8   assert(j == 2);
10   return 0;