1 // RUN: %clangxx_hwasan %s -o %t && %run %t 2>&1
3 #include <sanitizer/hwasan_interface.h>
8 // Regression test for https://reviews.llvm.org/D107938#2961070, where, on
9 // reusing an allocation, we forgot to reset the short granule tag if the
10 // allocator was disabled. This lead to a false positive magic-string mismatch.
17 // Relies on the LRU cache immediately recycling the allocation above.
19 free(p
); // Regression was here, in the magic-string check in the runtime.