1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
7 barrier_wait(&barrier
);
8 int *pp
= __c11_atomic_load(&p
, __ATOMIC_RELAXED
);
14 barrier_init(&barrier
, 2);
16 pthread_create(&th
, 0, thr
, p
);
17 __c11_atomic_store(&p
, new int, __ATOMIC_RELAXED
);
18 barrier_wait(&barrier
);
23 // CHECK: Previous write
24 // CHECK: #0 operator new
25 // CHECK: Location is heap block
26 // CHECK: #0 operator new