Debian Codegraph @

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

raw
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
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 }