r251313 - [analyzer] Added a missing test case for r251289.
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 10:42:15 PDT 2015
Author: xazax
Date: Mon Oct 26 12:42:14 2015
New Revision: 251313
URL: http://llvm.org/viewvc/llvm-project?rev=251313&view=rev
Log:
[analyzer] Added a missing test case for r251289.
Modified:
cfe/trunk/test/Analysis/lambdas.cpp
Modified: cfe/trunk/test/Analysis/lambdas.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/lambdas.cpp?rev=251313&r1=251312&r2=251313&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/lambdas.cpp (original)
+++ cfe/trunk/test/Analysis/lambdas.cpp Mon Oct 26 12:42:14 2015
@@ -176,6 +176,19 @@ void inlineDefensiveChecks() {
(void)p;
}
+
+template<typename T>
+void callLambda(T t) {
+ t();
+}
+
+struct DontCrash {
+ int x;
+ void f() {
+ callLambda([&](){ ++x; });
+ }
+};
+
// CHECK: [B2 (ENTRY)]
// CHECK: Succs (1): B1
// CHECK: [B1]
More information about the cfe-commits
mailing list