1 // RUN: %clang_hwasan -Wl,--build-id=0xaba493998257fbdd %s -o %t
2 // RUN: %env_hwasan_opts=symbolize=0 not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,NOSYM
3 // RUN: not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,SYM
7 #include <sanitizer/hwasan_interface.h>
9 int main(int argc
, char **argv
) {
10 __hwasan_enable_allocator_tagging();
11 char *buf
= (char *)malloc(1);
13 // CHECK: ERROR: HWAddressSanitizer: tag-mismatch
14 // NOSYM: 0x{{.*}} {{.*}}build-ids.c{{.*}} (BuildId: aba493998257fbdd)
15 // SYM: 0x{{.*}} in main {{.*}}build-ids.c:[[@LINE-3]]:{{[0-9]+}}