aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C
blob: d3f434195ea9903756759eab275a4941e6a82dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run { target c++11 } }
#include <cassert>

int main() {
  int i = 1, j = 2;
  [&i, j] () mutable -> void { i = 0; j = 0; } ();
  assert(i == 0);
  assert(j == 2);

  return 0;
}