1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
7 pthread_mutex_init(&m
, 0);
8 pthread_mutex_lock(&m
);
9 pthread_mutex_destroy(&m
);
13 // CHECK: WARNING: ThreadSanitizer: destroy of a locked mutex
14 // CHECK: #0 pthread_mutex_destroy
17 // CHECK: #0 pthread_mutex_lock
19 // CHECK: Mutex {{.*}} created at:
20 // CHECK: #0 pthread_mutex_init
22 // CHECK: SUMMARY: ThreadSanitizer: destroy of a locked mutex{{.*}}main