diff options
Diffstat (limited to 'test/Parser/cxx0x-lambda-expressions.cpp')
-rw-r--r-- | test/Parser/cxx0x-lambda-expressions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Parser/cxx0x-lambda-expressions.cpp b/test/Parser/cxx0x-lambda-expressions.cpp index aa2a9cf7fd..a25116b460 100644 --- a/test/Parser/cxx0x-lambda-expressions.cpp +++ b/test/Parser/cxx0x-lambda-expressions.cpp @@ -20,6 +20,8 @@ class C { [&,foo] () {}; [this] () {}; + [] -> int { return 0; }; // expected-error{{lambda requires '()' before return type}} + [] mutable -> int { return 0; }; // expected-error{{lambda requires '()' before 'mutable'}} return 1; } |