forked from OSchip/llvm-project
21 lines
684 B
C++
21 lines
684 B
C++
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
|
|
#include "test.h"
|
|
|
|
int main() {
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsEnd("", 0);
|
|
AnnotateIgnoreReadsEnd("", 0);
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsEnd("", 0);
|
|
}
|
|
|
|
// CHECK: ThreadSanitizer: main thread finished with ignores enabled
|
|
// CHECK: Ignore was enabled at:
|
|
// CHECK: #0 AnnotateIgnoreReadsBegin
|
|
// CHECK: #1 main {{.*}}thread_end_with_ignore3.cpp:9
|
|
// CHECK: Ignore was enabled at:
|
|
// CHECK: #0 AnnotateIgnoreReadsBegin
|
|
// CHECK: #1 main {{.*}}thread_end_with_ignore3.cpp:10
|