1 | // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s |
---|---|
2 | |
3 | // ReportIgnoresEnabled is disabled on Darwin, see comment in tsan_rtl_thread.cpp. |
4 | // UNSUPPORTED: darwin |
5 | #include "test.h" |
6 | |
7 | int main() { |
8 | AnnotateIgnoreReadsBegin(f: "", l: 0); |
9 | AnnotateIgnoreReadsBegin(f: "", l: 0); |
10 | AnnotateIgnoreReadsEnd(f: "", l: 0); |
11 | AnnotateIgnoreReadsEnd(f: "", l: 0); |
12 | AnnotateIgnoreReadsBegin(f: "", l: 0); |
13 | AnnotateIgnoreReadsBegin(f: "", l: 0); |
14 | AnnotateIgnoreReadsEnd(f: "", l: 0); |
15 | } |
16 | |
17 | // CHECK: ThreadSanitizer: main thread finished with ignores enabled |
18 | // CHECK: Ignore was enabled at: |
19 | // CHECK: #0 AnnotateIgnoreReadsBegin |
20 | // CHECK: #1 main {{.*}}thread_end_with_ignore3.cpp:12 |
21 | // CHECK: Ignore was enabled at: |
22 | // CHECK: #0 AnnotateIgnoreReadsBegin |
23 | // CHECK: #1 main {{.*}}thread_end_with_ignore3.cpp:13 |
24 |