From 681afdf34bb16d1877e984d157dfd389a79a4256 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 2 Aug 2019 07:18:07 +0000 Subject: compiler-rt: Rename .cc file in test/tsan to .cpp Like r367463, but for test/tsan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@367656 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tsan/thread_end_with_ignore2.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/tsan/thread_end_with_ignore2.cpp (limited to 'test/tsan/thread_end_with_ignore2.cpp') diff --git a/test/tsan/thread_end_with_ignore2.cpp b/test/tsan/thread_end_with_ignore2.cpp new file mode 100644 index 000000000..9387ea488 --- /dev/null +++ b/test/tsan/thread_end_with_ignore2.cpp @@ -0,0 +1,12 @@ +// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s +extern "C" void AnnotateIgnoreWritesBegin(const char *f, int l); + +int main() { + AnnotateIgnoreWritesBegin("", 0); +} + +// CHECK: ThreadSanitizer: main thread finished with ignores enabled +// CHECK: Ignore was enabled at: +// CHECK: #0 AnnotateIgnoreWritesBegin +// CHECK: #1 main + -- cgit v1.2.1