xref: /llvm-project/compiler-rt/test/hwasan/TestCases/short-granule-and-match-all-tag.cpp (revision d961f66b28c592d3d34664b613c193cb3f75dd79)
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 
main()6 int main() {
7   __hwasan_enable_allocator_tagging();
8   char *x = (char *)malloc(40);
9   char volatile z = *x;
10   free(x);
11   return 0;
12 }
13