1 // RUN: %clangxx_tsan %s -o %t
2 // RUN: %env_tsan_opts=verbosity=2:external_symbolizer_path=/usr/bin/atos %deflake %run %t | FileCheck %s
7 void *Thread(void *a
) {
8 barrier_wait(&barrier
);
14 barrier_init(&barrier
, 2);
15 print_address("addr=", 1, GlobalData
);
17 pthread_create(&t
, 0, Thread
, 0);
19 barrier_wait(&barrier
);
23 // CHECK: Using atos at user-specified path: /usr/bin/atos
24 // CHECK: addr=[[ADDR:0x[0-9,a-f]+]]
25 // CHECK: WARNING: ThreadSanitizer: data race
26 // CHECK: Location is global 'GlobalData' at [[ADDR]] ({{.*}}+0x{{[0-9,a-f]+}})