[compiler-rt] r213135 - Add FreeBSD support to the address sanitizer's assign_large_valloc_to_global.cc test case
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed Jul 16 03:14:04 PDT 2014
Author: vkutuzov
Date: Wed Jul 16 05:14:01 2014
New Revision: 213135
URL: http://llvm.org/viewvc/llvm-project?rev=213135&view=rev
Log:
Add FreeBSD support to the address sanitizer's assign_large_valloc_to_global.cc test case
Differential Revision: http://reviews.llvm.org/D4525
Modified:
compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc?rev=213135&r1=213134&r2=213135&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc Wed Jul 16 05:14:01 2014
@@ -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() { }
More information about the llvm-commits
mailing list