[compiler-rt] a8cd84d - [test][asan] Fix test on MacOS 12+
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 12 19:59:03 PDT 2023
Author: Vitaly Buka
Date: 2023-03-12T19:58:49-07:00
New Revision: a8cd84d3284374df852496b93cd9d8ce82d489af
URL: https://github.com/llvm/llvm-project/commit/a8cd84d3284374df852496b93cd9d8ce82d489af
DIFF: https://github.com/llvm/llvm-project/commit/a8cd84d3284374df852496b93cd9d8ce82d489af.diff
LOG: [test][asan] Fix test on MacOS 12+
Reviewed By: rsundahl
Differential Revision: https://reviews.llvm.org/D145810
Added:
Modified:
compiler-rt/test/asan/TestCases/report_error_summary.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/report_error_summary.cpp b/compiler-rt/test/asan/TestCases/report_error_summary.cpp
index 6591cf14b209d..d565d2add7793 100644
--- a/compiler-rt/test/asan/TestCases/report_error_summary.cpp
+++ b/compiler-rt/test/asan/TestCases/report_error_summary.cpp
@@ -5,6 +5,9 @@
#include <stdio.h>
+// Required for ld64 macOS 12.0+
+__attribute__((weak)) extern "C" void foo() {}
+
extern "C" void __sanitizer_report_error_summary(const char *summary) {
fprintf(stderr, "test_report_error_summary\n");
// CHECK: test_report_error_summary
More information about the llvm-commits
mailing list