1 // RUN: %clangxx_asan -fsanitize-address-use-after-return=never -O %s -o %t && %run %t
6 #include <sanitizer/asan_interface.h>
12 fprintf(stderr
, "\nTestLongJmp\n");
13 fprintf(stderr
, "Before: %p poisoned: %d\n", &x
,
14 __asan_address_is_poisoned(x
+ 32));
15 assert(__asan_address_is_poisoned(x
+ 32));
18 fprintf(stderr
, "After: %p poisoned: %d\n", &x
,
19 __asan_address_is_poisoned(x
+ 32));
20 assert(!__asan_address_is_poisoned(x
+ 32));