From 4a9638324ab920ae46091b1317ebf0fe2d3a4747 Mon Sep 17 00:00:00 2001 From: Viktor Kutuzov Date: Wed, 16 Jul 2014 10:14:01 +0000 Subject: [PATCH] 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 --- .../test/asan/TestCases/Posix/assign_large_valloc_to_global.cc | 5 +++-- 1 file 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 15096e5..ad547ce0 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 -#ifndef __APPLE__ +#include +#if !defined(__APPLE__) && !defined(__FreeBSD__) # include -#endif // __APPLE__ +#endif // !__APPLE__ && !__FreeBSD__ int *p = (int*)valloc(1 << 20); int main() { } -- 2.7.4