[compiler-rt] r192960 - [asan] fix a test on Mac

Kostya Serebryany kcc at google.com
Fri Oct 18 02:42:24 PDT 2013


Author: kcc
Date: Fri Oct 18 04:42:24 2013
New Revision: 192960

URL: http://llvm.org/viewvc/llvm-project?rev=192960&view=rev
Log:
[asan] fix a test on Mac

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc?rev=192960&r1=192959&r2=192960&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc Fri Oct 18 04:42:24 2013
@@ -1,6 +1,8 @@
 // Make sure we don't report a leak nor hang.
 // RUN: %clangxx_asan -O3 %s -o %t && %t
 #include <stdlib.h>
+#ifndef __APPLE__
 #include <malloc.h>
+#endif  // __APPLE__
 int *p = (int*)valloc(1 << 20);
 int main() { }





More information about the llvm-commits mailing list