commit | e2a8b9862c09acb5ae065718bbd73485da21172b | [log] [tgz] |
---|---|---|
author | Thurston Dang <thurston@google.com> | Tue Sep 02 19:48:31 2025 +0000 |
committer | GitHub <noreply@github.com> | Tue Sep 02 12:48:31 2025 -0700 |
tree | 26b41c3bfbc56126104d2f89960b22cfe5985312 | |
parent | c62284c43d519317979e3028f7c37f42eed6ac8e [diff] |
[asan] Change zero_alloc.cpp testcase to use stdlib.h, re-enable on Mac (#156490) Avoid build breakage on Mac (reported at https://github.com/llvm/llvm-project/pull/155943#issuecomment-3244593484)
diff --git a/compiler-rt/test/asan/TestCases/zero_alloc.cpp b/compiler-rt/test/asan/TestCases/zero_alloc.cpp index 1cd0073..aa807f4 100644 --- a/compiler-rt/test/asan/TestCases/zero_alloc.cpp +++ b/compiler-rt/test/asan/TestCases/zero_alloc.cpp
@@ -1,10 +1,7 @@ // RUN: %clang_asan -Wno-alloc-size -fsanitize-recover=address %s -o %t && %env_asan_opts=halt_on_error=0 %run %t 2>&1 | FileCheck %s -// UNSUPPORTED: darwin -// UNSUPPORTED: ios - -#include <malloc.h> #include <stdio.h> +#include <stdlib.h> int main(int argc, char **argv) { {