1 // Test blacklist functionality for TSan.
3 // RUN: %clangxx_tsan -O1 %s \
4 // RUN: -fsanitize-blacklist=%p/Helpers/blacklist.txt \
5 // RUN: -o %t && %t 2>&1 | FileCheck %s
11 void *Thread1(void *x
) {
16 void *Blacklisted_Thread2(void *x
) {
23 pthread_create(&t
[0], NULL
, Thread1
, NULL
);
24 pthread_create(&t
[1], NULL
, Blacklisted_Thread2
, NULL
);
25 pthread_join(t
[0], NULL
);
26 pthread_join(t
[1], NULL
);
31 // CHECK-NOT: ThreadSanitizer: data race