diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 23:21:24 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 23:21:24 +0000 |
commit | 61dab36ccbcc1eef7b7cfcb641e04116726ad053 (patch) | |
tree | 3fb45876866c9e33607a345f4fff5e8c33e5d13d /test/SemaCXX/lambda-expressions.cpp | |
parent | a98a28534e48e59d5f7d69adae121589e298dd43 (diff) |
Remove FIXME: as Eli points out, the behavior here is now correct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/lambda-expressions.cpp')
-rw-r--r-- | test/SemaCXX/lambda-expressions.cpp | 8 |
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 } (); } } |