[compiler-rt] 51163c5 - [msan] Change zero_alloc.cpp testcase to use stdlib.h (#156491)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 12:48:41 PDT 2025


Author: Thurston Dang
Date: 2025-09-02T12:48:37-07:00
New Revision: 51163c5dbdea72139ee4b93f5de7e652d30dea9f

URL: https://github.com/llvm/llvm-project/commit/51163c5dbdea72139ee4b93f5de7e652d30dea9f
DIFF: https://github.com/llvm/llvm-project/commit/51163c5dbdea72139ee4b93f5de7e652d30dea9f.diff

LOG: [msan] Change zero_alloc.cpp testcase to use stdlib.h (#156491)

Avoid build breakage on Mac

Added: 
    

Modified: 
    compiler-rt/test/msan/zero_alloc.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/msan/zero_alloc.cpp b/compiler-rt/test/msan/zero_alloc.cpp
index 6e38ce4c0a8f8..1451e1e89e9fb 100644
--- a/compiler-rt/test/msan/zero_alloc.cpp
+++ b/compiler-rt/test/msan/zero_alloc.cpp
@@ -1,7 +1,7 @@
 // RUN: %clang_msan -Wno-alloc-size -fsanitize-recover=memory %s -o %t && not %run %t 2>&1 | FileCheck %s
 
-#include <malloc.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 int main(int argc, char **argv) {
   {


        


More information about the llvm-commits mailing list