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 | 4a9638324ab920ae46091b1317ebf0fe2d3a4747 (patch) | |
tree | ef3e2990b753ffb81ac28c3fd003d2b9ea84b723 /compiler-rt | |
parent | f7dfafe7121943b8914ba5be27b86b109d125a06 (diff) | |
download | bcm5719-llvm-4a9638324ab920ae46091b1317ebf0fe2d3a4747.tar.gz bcm5719-llvm-4a9638324ab920ae46091b1317ebf0fe2d3a4747.zip |
Add FreeBSD support to the address sanitizer's assign_large_valloc_to_global.cc test case
Differential Revision: http://reviews.llvm.org/D4525
llvm-svn: 213135
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc b/compiler-rt/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc index 15096e5e7fe..ad547ce0ce1 100644 --- a/compiler-rt/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc +++ b/compiler-rt/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() { } |