summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2018-05-03 21:30:47 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2018-05-03 21:30:47 +0000
commit6e713d9866daf42a2cec19eb26bf5ea0d77ec3e0 (patch)
treece9d8583d41fbc441894b2e635699c321c22aab2 /compiler-rt
parentce716347afef3e6aad13dc222fb9cbad88b1d9dc (diff)
downloadbcm5719-llvm-6e713d9866daf42a2cec19eb26bf5ea0d77ec3e0.tar.gz
bcm5719-llvm-6e713d9866daf42a2cec19eb26bf5ea0d77ec3e0.zip
Follow-up to r331378. Update tests to allow to use C atomics in C++.
Reviewers: kubamracek Reviewed By: kubamracek Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D46363 llvm-svn: 331484
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm2
-rw-r--r--compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm2
-rw-r--r--compiler-rt/test/tsan/Darwin/xpc-race.mm2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm b/compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm
index 05c65c04b66..60b8f3a0a48 100644
--- a/compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm
+++ b/compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation -D__ALLOW_STDC_ATOMICS_IN_CXX__
// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
diff --git a/compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm b/compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
index e5cd7edc6bb..9e4c142e83e 100644
--- a/compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
+++ b/compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation -D__ALLOW_STDC_ATOMICS_IN_CXX__
// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
diff --git a/compiler-rt/test/tsan/Darwin/xpc-race.mm b/compiler-rt/test/tsan/Darwin/xpc-race.mm
index 872c9ee73e1..77d39ac92ea 100644
--- a/compiler-rt/test/tsan/Darwin/xpc-race.mm
+++ b/compiler-rt/test/tsan/Darwin/xpc-race.mm
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan %s -o %t -framework Foundation
+// RUN: %clangxx_tsan %s -o %t -framework Foundation -D__ALLOW_STDC_ATOMICS_IN_CXX__
// RUN: %deflake %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: ios
OpenPOWER on IntegriCloud