blob: 68b042be8e1a94100e7c90cbbd47a6bc695f582a [file] [log] [blame]
// 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