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 +// 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