[analyzer] Added a missing test case for r251289.

llvm-svn: 251313
This commit is contained in:
Gabor Horvath 2015-10-26 17:42:14 +00:00
parent 8e850d45e4
commit 2f929b4093
1 changed files with 13 additions and 0 deletions

View File

@ -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]