1 // { dg-options "-std=c++0x" }
6 void call(const F& f) { f(); }
9 call([] () -> void {});
10 call([] () mutable -> void {});
13 call([&i] () -> void { i = 0; });
15 call([i] () -> void { i = 0; }); // { dg-error "" "assignment to non-reference capture in const lambda" }