Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / tsan / thread_end_with_ignore2.cpp
blobeee7a9e5de9b0540ebccb4055e2af44b806d01d7
1 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
3 // ReportIgnoresEnabled is disabled on Darwin, see comment in tsan_rtl_thread.cpp.
4 // UNSUPPORTED: darwin
5 #include "test.h"
7 int main() {
8 AnnotateIgnoreWritesBegin("", 0);
11 // CHECK: ThreadSanitizer: main thread finished with ignores enabled
12 // CHECK: Ignore was enabled at:
13 // CHECK: #0 AnnotateIgnoreWritesBegin
14 // CHECK: #1 main