1 // { dg-do run { target c++11 } } 2 3 #include <cassert> 4 main()5 int main() { 6 int i = 1; 7 float j = 2.0; 8 [&] () -> void { i = 3; j = 4.0; } (); 9 assert(i == 3); 10 assert(j == 4.0); 11 12 return 0; 13 } 14 15