From 6e713d9866daf42a2cec19eb26bf5ea0d77ec3e0 Mon Sep 17 00:00:00 2001 From: Volodymyr Sapsai Date: Thu, 3 May 2018 21:30:47 +0000 Subject: [PATCH] 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 --- compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm | 2 +- compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm | 2 +- compiler-rt/test/tsan/Darwin/xpc-race.mm | 2 +- 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 05c65c04b665..60b8f3a0a48e 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 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 e5cd7edc6bb7..9e4c142e83e1 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 diff --git a/compiler-rt/test/tsan/Darwin/xpc-race.mm b/compiler-rt/test/tsan/Darwin/xpc-race.mm index 872c9ee73e13..77d39ac92ea0 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