1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
6 AnnotateRWLockReleased(__FILE__
, __LINE__
, &m
, 1);
10 // CHECK: WARNING: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread)
11 // CHECK: #0 AnnotateRWLockReleased
13 // CHECK: Location is stack of main thread.
14 // CHECK: Mutex {{.*}} created at:
15 // CHECK: #0 AnnotateRWLockReleased
17 // CHECK: SUMMARY: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread)