1 // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
4 void *Thread(void *x
) {
5 sleep(100); // leave the thread "running"
11 pthread_create(&t
, 0, Thread
, 0);
12 fprintf(stderr
, "DONE\n");
17 // CHECK-NOT: WARNING: ThreadSanitizer: thread leak