From ca9211ecdede9bdedb812b2243a4abdb8dacd1b9 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 7 Jan 2015 19:55:37 +0000 Subject: Import compiler-rt trunk r224034. https://llvm.org/svn/llvm-project/compiler-rt/trunk@224034 --- lib/tsan/lit_tests/halt_on_error.cc | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 lib/tsan/lit_tests/halt_on_error.cc (limited to 'lib/tsan/lit_tests/halt_on_error.cc') diff --git a/lib/tsan/lit_tests/halt_on_error.cc b/lib/tsan/lit_tests/halt_on_error.cc deleted file mode 100644 index fddaffff29aae..0000000000000 --- a/lib/tsan/lit_tests/halt_on_error.cc +++ /dev/null @@ -1,25 +0,0 @@ -// RUN: %clang_tsan -O1 %s -o %t && TSAN_OPTIONS="$TSAN_OPTIONS halt_on_error=1" not %t 2>&1 | FileCheck %s -#include -#include - -int X; - -void *Thread(void *x) { - X = 42; - return 0; -} - -int main() { - fprintf(stderr, "BEFORE\n"); - pthread_t t; - pthread_create(&t, 0, Thread, 0); - X = 43; - pthread_join(t, 0); - fprintf(stderr, "AFTER\n"); - return 0; -} - -// CHECK: BEFORE -// CHECK: WARNING: ThreadSanitizer: data race -// CHECK-NOT: AFTER - -- cgit v1.2.3