Tests for the fixits which Doug added in r150727.

llvm-svn: 150777
This commit is contained in:
Richard Smith
2012-02-17 01:39:04 +00:00
parent 1002d10aaa
commit 50965d9331

View File

@@ -57,4 +57,6 @@ void S2::f(int i) {
(void)[=, this]{ this->g(5); }; // expected-error{{'this' cannot be explicitly captured}}
(void)[i, i]{ }; // expected-error{{'i' can appear only once in a capture list}}
(void)[&, i, i]{ }; // expected-error{{'i' can appear only once in a capture list}}
(void)[] mutable { }; // expected-error{{lambda requires '()' before 'mutable'}}
(void)[] -> int { }; // expected-error{{lambda requires '()' before return type}}
}