]> granicus.if.org Git - clang/commitdiff
Tests for the fixits which Doug added in r150727.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Feb 2012 01:39:04 +0000 (01:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Feb 2012 01:39:04 +0000 (01:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150777 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/fixit-cxx0x.cpp

index e642b057a2185394c85f05ade2ae141d32b8d085..da6bf2fe446b49667b66b15489c45aff8102ea64 100644 (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}}
 }