[asan] Do not use lambda in sanitizer lit tests.

We may be building with a very old C++ library.

llvm-svn: 206180
This commit is contained in:
Evgeniy Stepanov 2014-04-14 15:19:07 +00:00
parent 9ce9a6cdf6
commit 681016b2ea
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ int main(int argc, char **argv) {
std::vector<char *> v;
for (long total = total_mb << 20; total > 0; total -= allocation_size)
v.push_back(new char[allocation_size]);
std::for_each(v.begin(), v.end(),
[](std::vector<char *>::reference ref) { delete[] ref; });
for (auto p : v) delete[] p;
printf("PASS\n");
// CHECK: AddressSanitizer CHECK failed{{.*}}total_mmaped{{.*}}mmap_limit_mb
return 0;