mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 06:31:50 +08:00
Tests for the fixits which Doug added in r150727.
llvm-svn: 150777
This commit is contained in:
@@ -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}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user