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 | 50965d9331adf6826beb3e25a17a321c0fd337dd (patch) | |
tree | d3807a08f4b7cf71e343dc6b9651a243c98e25cc | |
parent | 1002d10aaaf18f6b54f6e458b4630f5db9185999 (diff) | |
download | bcm5719-llvm-50965d9331adf6826beb3e25a17a321c0fd337dd.tar.gz bcm5719-llvm-50965d9331adf6826beb3e25a17a321c0fd337dd.zip |
Tests for the fixits which Doug added in r150727.
llvm-svn: 150777
-rw-r--r-- | clang/test/FixIt/fixit-cxx0x.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-cxx0x.cpp b/clang/test/FixIt/fixit-cxx0x.cpp index e642b057a21..da6bf2fe446 100644 --- a/clang/test/FixIt/fixit-cxx0x.cpp +++ b/clang/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}} } |