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