1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
6 void *Thread1(void *x
) {
7 barrier_wait(&barrier
);
14 void *Thread2(void *x
) {
18 barrier_wait(&barrier
);
23 barrier_init(&barrier
, 2);
25 pthread_create(&t
, 0, Thread1
, 0);
30 // CHECK: ThreadSanitizer: reported 1 warnings