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