brintos

brintos / llvm-project-archived public Read only

0
0
Text · 792 B · 372ba25 Raw
24 lines · cpp
1// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s2 3// ReportIgnoresEnabled is disabled on Darwin, see comment in tsan_rtl_thread.cpp.4// UNSUPPORTED: darwin5#include "test.h"6 7int main() {8  AnnotateIgnoreReadsBegin("", 0);9  AnnotateIgnoreReadsBegin("", 0);10  AnnotateIgnoreReadsEnd("", 0);11  AnnotateIgnoreReadsEnd("", 0);12  AnnotateIgnoreReadsBegin("", 0);13  AnnotateIgnoreReadsBegin("", 0);14  AnnotateIgnoreReadsEnd("", 0);15}16 17// CHECK: ThreadSanitizer: main thread finished with ignores enabled18// CHECK:   Ignore was enabled at:19// CHECK:     #0 AnnotateIgnoreReadsBegin20// CHECK:     #1 main {{.*}}thread_end_with_ignore3.cpp:1221// CHECK:   Ignore was enabled at:22// CHECK:     #0 AnnotateIgnoreReadsBegin23// CHECK:     #1 main {{.*}}thread_end_with_ignore3.cpp:1324