Make test more lenient for custom clang version strings
[llvm-project.git] / compiler-rt / test / asan / TestCases / report_error_summary.cpp
blob9e024e35bed864ca74670a9d15f5a6224885325b
1 // RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
3 #include <stdio.h>
5 // Required for ld64 macOS 12.0+
6 __attribute__((weak)) extern "C" void foo() {}
8 extern "C" void __sanitizer_report_error_summary(const char *summary) {
9 fprintf(stderr, "test_report_error_summary\n");
10 // CHECK: test_report_error_summary
11 fflush(stderr);
14 char *x;
16 int main() {
17 x = new char[20];
18 delete[] x;
19 return x[0];