1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
6 AnnotateRWLockAcquired(__FILE__
, __LINE__
, &m
, 1);
7 AnnotateRWLockAcquired(__FILE__
, __LINE__
, &m
, 0);
11 // CHECK: WARNING: ThreadSanitizer: read lock of a write locked mutex
12 // CHECK: #0 AnnotateRWLockAcquired
14 // CHECK: Location is stack of main thread.
15 // CHECK: Mutex {{.*}}) created at:
16 // CHECK: #0 AnnotateRWLockAcquired
18 // CHECK: SUMMARY: ThreadSanitizer: read lock of a write locked mutex