[cfe-commits] r151405 - /cfe/trunk/test/SemaCXX/lambda-expressions.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Fri Feb 24 15:21:24 PST 2012
Author: rsmith
Date: Fri Feb 24 17:21:24 2012
New Revision: 151405
URL: http://llvm.org/viewvc/llvm-project?rev=151405&view=rev
Log:
Remove FIXME: as Eli points out, the behavior here is now correct.
Modified:
cfe/trunk/test/SemaCXX/lambda-expressions.cpp
Modified: cfe/trunk/test/SemaCXX/lambda-expressions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/lambda-expressions.cpp?rev=151405&r1=151404&r2=151405&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/lambda-expressions.cpp (original)
+++ cfe/trunk/test/SemaCXX/lambda-expressions.cpp Fri Feb 24 17:21:24 2012
@@ -116,15 +116,13 @@
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
} ();
}
}
More information about the cfe-commits
mailing list