aboutsummaryrefslogtreecommitdiff
path: root/lib/tsan/lit_tests/thread_end_with_ignore2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tsan/lit_tests/thread_end_with_ignore2.cc')
-rw-r--r--lib/tsan/lit_tests/thread_end_with_ignore2.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tsan/lit_tests/thread_end_with_ignore2.cc b/lib/tsan/lit_tests/thread_end_with_ignore2.cc
new file mode 100644
index 000000000000..8f743ae2f4a4
--- /dev/null
+++ b/lib/tsan/lit_tests/thread_end_with_ignore2.cc
@@ -0,0 +1,9 @@
+// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
+extern "C" void AnnotateIgnoreWritesBegin(const char *f, int l);
+
+int main() {
+ AnnotateIgnoreWritesBegin("", 0);
+}
+
+// CHECK: ThreadSanitizer: thread T0 finished with ignores enabled
+