1 // Tests that our thread initialization hooks work properly with random_tags=1.
2 // RUN: %clang_hwasan %s -o %t
3 // RUN: %env_hwasan_opts=random_tags=1 %run %t
7 #include <sanitizer/hwasan_interface.h>
11 void *Increment(void *arg
) {
17 __hwasan_enable_allocator_tagging();
19 pthread_create(&t1
, NULL
, Increment
, NULL
);
20 pthread_join(t1
, NULL
);