2 // { dg-options "-std=c++0x" }
7 void call(const F& f) { f(); }
10 call([] () -> void {});
11 //call([] () mutable -> void {}); // { dg-error: "`f' does not have const `operator()'" }
14 call([&i] () -> void { i = 0; });
16 //call([i] () -> void { i = 0; }); // { dg-error: "assignment to non-reference capture in const lambda" }