diff options
Diffstat (limited to 'compiler-rt/test/hwasan/TestCases/use-after-free.c')
-rw-r--r-- | compiler-rt/test/hwasan/TestCases/use-after-free.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/test/hwasan/TestCases/use-after-free.c b/compiler-rt/test/hwasan/TestCases/use-after-free.c index 8d47acf4d5c3..05ea7f4d7137 100644 --- a/compiler-rt/test/hwasan/TestCases/use-after-free.c +++ b/compiler-rt/test/hwasan/TestCases/use-after-free.c @@ -11,14 +11,12 @@ #include <stdio.h> #include <sanitizer/hwasan_interface.h> -#include "utils.h" - int main() { __hwasan_enable_allocator_tagging(); char * volatile x = (char*)malloc(10); free(x); __hwasan_disable_allocator_tagging(); - untag_fprintf(stderr, ISREAD ? "Going to do a READ\n" : "Going to do a WRITE\n"); + fprintf(stderr, ISREAD ? "Going to do a READ\n" : "Going to do a WRITE\n"); // CHECK: Going to do a [[TYPE:[A-Z]*]] int r = 0; if (ISREAD) r = x[5]; else x[5] = 42; // should be on the same line. |