[PATCH] Add FreeBSD support to the address sanitizer's atexit_stats.cc test case

Viktor Kutuzov vkutuzov at accesssoftek.com
Tue Jul 15 11:07:43 PDT 2014


Hi kcc, samsonov,

On FreeBSD <stdlib.h> work for <malloc.h>.

http://reviews.llvm.org/D4524

Files:
  test/asan/TestCases/atexit_stats.cc

Index: test/asan/TestCases/atexit_stats.cc
===================================================================
--- test/asan/TestCases/atexit_stats.cc
+++ test/asan/TestCases/atexit_stats.cc
@@ -7,7 +7,7 @@
 // XFAIL: android
 
 #include <stdlib.h>
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
 #include <malloc.h>
 #endif
 int *p1 = (int*)malloc(900);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4524.11456.patch
Type: text/x-patch
Size: 383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140715/5e73c58e/attachment.bin>


More information about the llvm-commits mailing list