1 // RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
6 void *Thread1(void *x
) {
7 barrier_wait(&barrier
);
13 barrier_init(&barrier
, 2);
15 pthread_create(&t
, 0, Thread1
, 0);
17 barrier_wait(&barrier
);
22 // CHECK: WARNING: ThreadSanitizer: data race