brintos

brintos / llvm-project-archived public Read only

0
0
Text · 418 B · eee7a9e Raw
16 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  AnnotateIgnoreWritesBegin("", 0);9}10 11// CHECK: ThreadSanitizer: main thread finished with ignores enabled12// CHECK:   Ignore was enabled at:13// CHECK:     #0 AnnotateIgnoreWritesBegin14// CHECK:     #1 main15 16