summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-04-04 21:55:40 +0000
committerJulian Lettner <jlettner@apple.com>2019-04-04 21:55:40 +0000
commitbe09db001a0b70b9a00566e156ee6ee8e99a3c37 (patch)
tree5570b826a13328b13c5894c44083af285d9602d4
parent6af8e1e64cfbf3d2f21b057225dcd0ea221c34ea (diff)
downloadbcm5719-llvm-be09db001a0b70b9a00566e156ee6ee8e99a3c37.tar.gz
bcm5719-llvm-be09db001a0b70b9a00566e156ee6ee8e99a3c37.zip
[TSan][libdispatch] Make test work on Linux
llvm-svn: 357729
-rw-r--r--compiler-rt/test/tsan/libdispatch/groups-destructor.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/test/tsan/libdispatch/groups-destructor.cc b/compiler-rt/test/tsan/libdispatch/groups-destructor.cc
index a551af63a46..72338ce6c5c 100644
--- a/compiler-rt/test/tsan/libdispatch/groups-destructor.cc
+++ b/compiler-rt/test/tsan/libdispatch/groups-destructor.cc
@@ -1,10 +1,11 @@
-// RUN: %clangxx_tsan %s -o %t
+// RUN: %clangxx_tsan %s %link_libcxx_tsan -o %t
// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer'
#include <dispatch/dispatch.h>
-#import <memory>
-#import <stdatomic.h>
+#include <memory>
+#include <stdatomic.h>
+#include <cstdio>
_Atomic(long) destructor_counter = 0;
OpenPOWER on IntegriCloud