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 | be09db001a0b70b9a00566e156ee6ee8e99a3c37 (patch) | |
| tree | 5570b826a13328b13c5894c44083af285d9602d4 | |
| parent | 6af8e1e64cfbf3d2f21b057225dcd0ea221c34ea (diff) | |
| download | bcm5719-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.cc | 7 |
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; |

