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/tls_race.cc | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 lib/tsan/lit_tests/tls_race.cc (limited to 'lib/tsan/lit_tests/tls_race.cc') diff --git a/lib/tsan/lit_tests/tls_race.cc b/lib/tsan/lit_tests/tls_race.cc deleted file mode 100644 index 3cbcc9dbba420..0000000000000 --- a/lib/tsan/lit_tests/tls_race.cc +++ /dev/null @@ -1,19 +0,0 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s -#include -#include - -void *Thread(void *a) { - *(int*)a = 43; - return 0; -} - -int main() { - static __thread int Var = 42; - pthread_t t; - pthread_create(&t, 0, Thread, &Var); - Var = 43; - pthread_join(t, 0); -} - -// CHECK: WARNING: ThreadSanitizer: data race -// CHECK: Location is TLS of main thread. -- cgit v1.2.3