Mercurial > hg > CbC > CbC_llvm
annotate compiler-rt/test/tsan/mutex_bad_unlock.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s |
207 | 2 #include "test.h" |
150 | 3 |
4 int main() { | |
5 int m = 0; | |
6 AnnotateRWLockReleased(__FILE__, __LINE__, &m, 1); | |
7 return 0; | |
8 } | |
9 | |
10 // CHECK: WARNING: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread) | |
11 // CHECK: #0 AnnotateRWLockReleased | |
12 // CHECK: #1 main | |
13 // CHECK: Location is stack of main thread. | |
14 // CHECK: Mutex {{.*}} created at: | |
15 // CHECK: #0 AnnotateRWLockReleased | |
16 // CHECK: #1 main | |
17 // CHECK: SUMMARY: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread) | |
18 |