commit | 00dc24362d11540c39d57d27de846ce5823110cd | [log] [tgz] |
---|---|---|
author | Kostya Serebryany <kcc@google.com> | Fri Oct 18 09:42:24 2013 +0000 |
committer | Kostya Serebryany <kcc@google.com> | Fri Oct 18 09:42:24 2013 +0000 |
tree | 81244800e7c042de384c5eebb02709cfd2b2660f | |
parent | 4d7297daef90ad59446250617b72d184141436fc [diff] |
[asan] fix a test on Mac git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192960 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc b/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc index e5b2e66..b0a5015 100644 --- a/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc +++ b/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc
@@ -1,6 +1,8 @@ // Make sure we don't report a leak nor hang. // RUN: %clangxx_asan -O3 %s -o %t && %t #include <stdlib.h> +#ifndef __APPLE__ #include <malloc.h> +#endif // __APPLE__ int *p = (int*)valloc(1 << 20); int main() { }