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
4 // REQUIRES: stable-runtime
8 #include <sanitizer/hwasan_interface.h>
12 void *Increment(void *arg
) {
18 __hwasan_enable_allocator_tagging();
20 pthread_create(&t1
, NULL
, Increment
, NULL
);
21 pthread_join(t1
, NULL
);