[cfe-commits] r150777 - /cfe/trunk/test/FixIt/fixit-cxx0x.cpp

Richard Smith richard-llvm at metafoo.co.uk
Thu Feb 16 17:39:04 PST 2012


Author: rsmith
Date: Thu Feb 16 19:39:04 2012
New Revision: 150777

URL: http://llvm.org/viewvc/llvm-project?rev=150777&view=rev
Log:
Tests for the fixits which Doug added in r150727.

Modified:
    cfe/trunk/test/FixIt/fixit-cxx0x.cpp

Modified: cfe/trunk/test/FixIt/fixit-cxx0x.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit-cxx0x.cpp?rev=150777&r1=150776&r2=150777&view=diff
==============================================================================
--- cfe/trunk/test/FixIt/fixit-cxx0x.cpp (original)
+++ cfe/trunk/test/FixIt/fixit-cxx0x.cpp Thu Feb 16 19:39:04 2012
@@ -57,4 +57,6 @@
   (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}}
 }





More information about the cfe-commits mailing list