[PATCH] D46363: Follow-up to r331378. Update tests to allow to use C atomics in C++.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 2 12:08:03 PDT 2018


vsapsai created this revision.
vsapsai added a reviewer: kubamracek.

https://reviews.llvm.org/D46363

Files:
  compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm
  compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
  compiler-rt/test/tsan/Darwin/xpc-race.mm


Index: compiler-rt/test/tsan/Darwin/xpc-race.mm
===================================================================
--- compiler-rt/test/tsan/Darwin/xpc-race.mm
+++ 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
Index: compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
===================================================================
--- compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
+++ 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>
Index: compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm
===================================================================
--- compiler-rt/test/tsan/Darwin/gcd-groups-destructor.mm
+++ 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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46363.144912.patch
Type: text/x-patch
Size: 1390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180502/65b68cde/attachment.bin>


More information about the cfe-commits mailing list