1 // RUN: %clangxx_tsan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s
6 void *Thread2(void *a
) {
12 void *Thread(void *a
) {
13 static __thread
int Var
= 42;
15 pthread_create(&t
, 0, Thread2
, &Var
);
23 pthread_create(&t
, 0, Thread
, 0);
27 // CHECK: WARNING: ThreadSanitizer: data race
28 // CHECK: Location is TLS of thread T1.