diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-17 01:39:04 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-17 01:39:04 +0000 |
commit | 92dc03546ccfd417108c1fc74321091a82cbeeee (patch) | |
tree | c66ad1c6611611634e122918efd61f2e6d2cef33 /test/FixIt/fixit-cxx0x.cpp | |
parent | 85b29a4c862bb9f41d9739e5dab6436fe6d44ff8 (diff) |
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
Diffstat (limited to 'test/FixIt/fixit-cxx0x.cpp')
-rw-r--r-- | test/FixIt/fixit-cxx0x.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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}} } |