diff options
author | Kostya Serebryany <kcc@google.com> | 2013-10-18 09:42:24 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-10-18 09:42:24 +0000 |
commit | 00dc24362d11540c39d57d27de846ce5823110cd (patch) | |
tree | 81244800e7c042de384c5eebb02709cfd2b2660f | |
parent | 4d7297daef90ad59446250617b72d184141436fc (diff) | |
download | compiler-rt-00dc24362d11540c39d57d27de846ce5823110cd.tar.gz compiler-rt-00dc24362d11540c39d57d27de846ce5823110cd.tar.bz2 compiler-rt-00dc24362d11540c39d57d27de846ce5823110cd.tar.xz |
[asan] fix a test on Mac
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192960 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 e5b2e661..b0a50157 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() { } |