1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
11 void *Thread(void *a
) {
12 barrier_wait(&barrier
);
18 barrier_init(&barrier
, 2);
19 print_address("addr3=", 1, XXX::YYY::ZZZ
);
21 pthread_create(&t
, 0, Thread
, 0);
23 barrier_wait(&barrier
);
27 // CHECK: addr3=[[ADDR3:0x[0-9,a-f]+]]
28 // CHECK: WARNING: ThreadSanitizer: data race
29 // CHECK: Location is global 'XXX::YYY::ZZZ' {{(of size 40 )?}}at [[ADDR3]] ({{.*}}+0x{{[0-9,a-f]+}})