From a8cd84d3284374df852496b93cd9d8ce82d489af Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 10 Mar 2023 09:45:37 -0800 Subject: [PATCH] [test][asan] Fix test on MacOS 12+ Reviewed By: rsundahl Differential Revision: https://reviews.llvm.org/D145810 --- compiler-rt/test/asan/TestCases/report_error_summary.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/test/asan/TestCases/report_error_summary.cpp b/compiler-rt/test/asan/TestCases/report_error_summary.cpp index 6591cf1..d565d2a 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 +// 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 -- 2.7.4