1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
2 #include "test.h"
3 
Thread(void * x)4 void *Thread(void *x) {
5   AnnotateIgnoreReadsBegin("", 0);
6   return 0;
7 }
8 
main()9 int main() {
10   pthread_t t;
11   pthread_create(&t, 0, Thread, 0);
12   pthread_join(t, 0);
13 }
14 
15 // CHECK: ThreadSanitizer: thread T1  finished with ignores enabled, created at:
16 // CHECK:     #0 pthread_create
17 // CHECK:     #1 main
18 // CHECK:   Ignore was enabled at:
19 // CHECK:     #0 AnnotateIgnoreReadsBegin
20 // CHECK:     #1 Thread
21 
22