1 // https://github.com/google/sanitizers/issues/925
2 // RUN: %clang_hwasan -O0 %s -o %t && %run %t 2>&1
4 // REQUIRES: aarch64-target-arch || x86_64-target-arch
11 #include <sanitizer/hwasan_interface.h>
13 __attribute__((noinline
, no_sanitize("hwaddress"))) void child() {
15 __hwasan_tag_memory(x
, 0xAA, sizeof(x
));
19 __attribute__((noinline
, no_sanitize("hwaddress"))) void parent() {
21 __hwasan_print_shadow(&x
, sizeof(x
));
22 assert(__hwasan_test_shadow(x
, sizeof(x
)) == -1);
25 int main(int argc
, char **argv
) {