1 // RUN: %clang_tsan -O1 %s -o %t && %env_tsan_opts=suppressions='%s.supp' %run %t 2>&1 | FileCheck %s
4 void __attribute__((noinline
)) suppress_this(pthread_mutex_t
*mu
) {
5 pthread_mutex_destroy(mu
);
10 pthread_mutex_init(&mu
, 0);
11 pthread_mutex_lock(&mu
);
13 fprintf(stderr
, "DONE\n");
17 // CHECK-NOT: failed to open suppressions file
18 // CHECK-NOT: WARNING: ThreadSanitizer: