1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
8 []; // expected-error {{expected body of lambda expression}}
9 [+] {}; // expected-error {{expected variable name or 'this' in lambda capture list}}
10 [foo+] {}; // expected-error {{expected ',' or ']' in lambda capture list}}
11 [foo,&this] {}; // expected-error {{'this' cannot be captured by reference}}
12 [&this] {}; // expected-error {{'this' cannot be captured by reference}}
13 [&,] {}; // expected-error {{ expected variable name or 'this' in lambda capture list}}
14 [=,] {}; // expected-error {{ expected variable name or 'this' in lambda capture list}}
17 [&] (int) mutable -> void {};
18 [foo,bar] () { return 3; };