aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/lambda-expressions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/lambda-expressions.cpp')
-rw-r--r--test/SemaCXX/lambda-expressions.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/SemaCXX/lambda-expressions.cpp b/test/SemaCXX/lambda-expressions.cpp
index e1b0f49cc8..7e53754a52 100644
--- a/test/SemaCXX/lambda-expressions.cpp
+++ b/test/SemaCXX/lambda-expressions.cpp
@@ -116,15 +116,13 @@ namespace NullPtr {
int &k = f(m); // a null pointer constant
} ();
- // FIXME: At least the second of these cases should probably not be
- // considered to be a null pointer constant.
[=] () -> bool {
- int &k = f(m); // a null pointer constant?
- return &m == 0; // no, captured!
+ int &k = f(m); // a null pointer constant
+ return &m == 0;
} ();
[m] {
- int &k = f(m); // a null pointer constant?
+ int &k = f(m); // a null pointer constant
} ();
}
}