aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/lambda-expressions.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-03-13 01:10:51 +0000
committerJohn McCall <rjmccall@apple.com>2012-03-13 01:10:51 +0000
commit23dde82d9043d404ee506880796b761bfec93d0d (patch)
tree29911b4eeed129b54feb8eed26b39eb9359655d7 /test/SemaCXX/lambda-expressions.cpp
parenta5f4441de7890953460d95f4e88b9fa432b48dc2 (diff)
Make the error about assigning to lambda-captured variables
clearer, and mention the existence of mutable lambdas. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/lambda-expressions.cpp')
-rw-r--r--test/SemaCXX/lambda-expressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/lambda-expressions.cpp b/test/SemaCXX/lambda-expressions.cpp
index 80ba0a1d03..e91dee92ed 100644
--- a/test/SemaCXX/lambda-expressions.cpp
+++ b/test/SemaCXX/lambda-expressions.cpp
@@ -144,7 +144,7 @@ namespace ModifyingCapture {
void test() {
int n = 0;
[=] {
- n = 1; // expected-error {{variable is not assignable (captured by copy)}}
+ n = 1; // expected-error {{cannot assign to a variable captured by copy in a non-mutable lambda}}
};
}
}