1// RUN: %clang_hwasan -mllvm -hwasan-match-all-tag=0 %s -o %t && %run %t
2
3#include <sanitizer/hwasan_interface.h>
4#include <stdlib.h>
5
6int main() {
7 __hwasan_enable_allocator_tagging();
8 char *x = (char *)malloc(size: 40);
9 char volatile z = *x;
10 free(ptr: x);
11 return 0;
12}
13

source code of compiler-rt/test/hwasan/TestCases/short-granule-and-match-all-tag.cpp