aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/tls_race2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/tls_race2.cc')
-rw-r--r--test/tsan/tls_race2.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/tsan/tls_race2.cc b/test/tsan/tls_race2.cc
index f3139b69fc08..5968e66d5b18 100644
--- a/test/tsan/tls_race2.cc
+++ b/test/tsan/tls_race2.cc
@@ -22,6 +22,8 @@ int main() {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
pthread_join(t, 0);
+ fprintf(stderr, "DONE\n");
+ return 0;
}
// CHECK: WARNING: ThreadSanitizer: data race
@@ -29,3 +31,4 @@ int main() {
// CHECK-FreeBSD: Location is TLS of thread T1.
// CHECK-NetBSD: Location is TLS of thread T1.
// CHECK-Darwin: Location is heap block of size 4
+// CHECK: DONE