diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-30 13:13:20 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-30 13:13:20 +0000 |
| commit | b3afa6c483f547c1e796504bbc059d2da271d2e5 (patch) | |
| tree | ec647cc4c722751c9bcfa1a5a2d571e5901b2569 /clang/test/Parser/cxx0x-lambda-expressions.cpp | |
| parent | a49705e5b8c2426ed01e145172c0f2b6cd171ad5 (diff) | |
| download | bcm5719-llvm-b3afa6c483f547c1e796504bbc059d2da271d2e5.tar.gz bcm5719-llvm-b3afa6c483f547c1e796504bbc059d2da271d2e5.zip | |
PR13652: Don't assume the parameter array on a FunctionTypeLoc for a lambda will
be filled in; they won't if the lambda's declarator has an invalid type. Instead
take the parameters from the declarator directly.
llvm-svn: 162904
Diffstat (limited to 'clang/test/Parser/cxx0x-lambda-expressions.cpp')
| -rw-r--r-- | clang/test/Parser/cxx0x-lambda-expressions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx0x-lambda-expressions.cpp b/clang/test/Parser/cxx0x-lambda-expressions.cpp index 7e9d4751e6e..82b26534a1a 100644 --- a/clang/test/Parser/cxx0x-lambda-expressions.cpp +++ b/clang/test/Parser/cxx0x-lambda-expressions.cpp @@ -26,6 +26,7 @@ class C { [] -> int { return 0; }; // expected-error{{lambda requires '()' before return type}} [] mutable -> int { return 0; }; // expected-error{{lambda requires '()' before 'mutable'}} + [](int) -> {}; // PR13652 expected-error {{expected a type}} return 1; } |

