diff options
author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-07-16 10:14:01 +0000 |
---|---|---|
committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-07-16 10:14:01 +0000 |
commit | dc811d55b9ff87b7db781a9a366e2c61ce544527 (patch) | |
tree | 0c9e020cc6aa5594d26923917b648812d773c876 | |
parent | 080e64649528c7a36d6655e562cbf02add1ee6ce (diff) | |
download | compiler-rt-dc811d55b9ff87b7db781a9a366e2c61ce544527.tar.gz |
Add FreeBSD support to the address sanitizer's assign_large_valloc_to_global.cc test case
Differential Revision: http://reviews.llvm.org/D4525
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213135 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/asan/TestCases/Posix/assign_large_valloc_to_global.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc b/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc index 15096e5e7..ad547ce0c 100644 --- a/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc +++ b/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc @@ -1,8 +1,9 @@ // Make sure we don't report a leak nor hang. // RUN: %clangxx_asan -O3 %s -o %t && %run %t #include <stdlib.h> -#ifndef __APPLE__ +#include <unistd.h> +#if !defined(__APPLE__) && !defined(__FreeBSD__) # include <malloc.h> -#endif // __APPLE__ +#endif // !__APPLE__ && !__FreeBSD__ int *p = (int*)valloc(1 << 20); int main() { } |