diff options
-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; |