1 // Test basic malloc functionality.
2 // RUN: %clang_hwasan %s -o %t
7 #include <sanitizer/hwasan_interface.h>
8 #include <sanitizer/allocator_interface.h>
11 __hwasan_enable_allocator_tagging();
12 char *a1
= (char*)malloc(0);
14 assert(__sanitizer_get_allocated_size(a1
) == 1);