diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-03-10 09:45:37 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-03-12 19:58:49 -0700 |
commit | a8cd84d3284374df852496b93cd9d8ce82d489af (patch) | |
tree | 7682b438bd81d2904fb424a295f98156ca1c74b2 /compiler-rt | |
parent | 4f0ed16a46c509a7b8ef09f3c9ae6434d0cf5622 (diff) | |
download | llvm-a8cd84d3284374df852496b93cd9d8ce82d489af.tar.gz |
[test][asan] Fix test on MacOS 12+
Reviewed By: rsundahl
Differential Revision: https://reviews.llvm.org/D145810
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/asan/TestCases/report_error_summary.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/report_error_summary.cpp b/compiler-rt/test/asan/TestCases/report_error_summary.cpp index 6591cf14b209..d565d2add779 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 |