diff options
author | Julian Lettner <jlettner@apple.com> | 2019-04-04 21:55:40 +0000 |
---|---|---|
committer | Julian Lettner <jlettner@apple.com> | 2019-04-04 21:55:40 +0000 |
commit | 53c76a18e5eb4a2658e11aee87d9a68478a1e2cb (patch) | |
tree | cf83e0c7f86c57ae71d5da24ba63839b6fe1d8e1 /test/tsan/libdispatch | |
parent | f73f4c9a9333daeecc9c61d717688fc019328ddf (diff) | |
download | compiler-rt-53c76a18e5eb4a2658e11aee87d9a68478a1e2cb.tar.gz |
[TSan][libdispatch] Make test work on Linux
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@357729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/libdispatch')
-rw-r--r-- | test/tsan/libdispatch/groups-destructor.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/tsan/libdispatch/groups-destructor.cc b/test/tsan/libdispatch/groups-destructor.cc index a551af63a..72338ce6c 100644 --- a/test/tsan/libdispatch/groups-destructor.cc +++ b/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; |