From: Richard Smith Date: Fri, 17 Feb 2012 01:39:04 +0000 (+0000) Subject: Tests for the fixits which Doug added in r150727. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92dc03546ccfd417108c1fc74321091a82cbeeee;p=clang Tests for the fixits which Doug added in r150727. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150777 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FixIt/fixit-cxx0x.cpp b/test/FixIt/fixit-cxx0x.cpp index e642b057a2..da6bf2fe44 100644 --- a/test/FixIt/fixit-cxx0x.cpp +++ b/test/FixIt/fixit-cxx0x.cpp @@ -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}} }