summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorViktor Kutuzov <vkutuzov@accesssoftek.com>2014-07-16 10:14:01 +0000
committerViktor Kutuzov <vkutuzov@accesssoftek.com>2014-07-16 10:14:01 +0000
commit4a9638324ab920ae46091b1317ebf0fe2d3a4747 (patch)
treeef3e2990b753ffb81ac28c3fd003d2b9ea84b723 /compiler-rt
parentf7dfafe7121943b8914ba5be27b86b109d125a06 (diff)
downloadbcm5719-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.cc5
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() { }
OpenPOWER on IntegriCloud