]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/tsan/thread_end_with_ignore.cc
1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
5 extern "C" void AnnotateIgnoreReadsBegin(const char *f
, int l
);
7 void *Thread(void *x
) {
8 AnnotateIgnoreReadsBegin("", 0);
14 pthread_create(&t
, 0, Thread
, 0);
18 // CHECK: ThreadSanitizer: thread T1 finished with ignores enabled, created at:
19 // CHECK: #0 pthread_create
21 // CHECK: Ignore was enabled at:
22 // CHECK: #0 AnnotateIgnoreReadsBegin