1 // RUN: %clangxx_asan -O0 %s -o %t
2 // RUN: not %run %t 0 2>&1 | FileCheck %s
4 #include <sanitizer/asan_interface.h>
7 static void ErrorReportCallbackOneToZ(const char *report
) {
8 fprintf(stderr
, "ABCDEF%sGHIJKL", report
);
12 int main(int argc
, char **argv
) {
13 __asan_set_error_report_callback(ErrorReportCallbackOneToZ
);
15 (void *)__builtin_extract_return_addr(__builtin_return_address(0)), 0, 0,
18 // CHECK: ERROR: AddressSanitizer