1 // RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
14 static Cache
*c
= my
? my
: new Cache(rand());
19 void *Thread(void *x
) {
20 foo(new Cache(rand()));
26 pthread_create(&t
[0], 0, Thread
, 0);
27 pthread_create(&t
[1], 0, Thread
, 0);
28 pthread_join(t
[0], 0);
29 pthread_join(t
[1], 0);
33 // CHECK-NOT: WARNING: ThreadSanitizer: data race