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

Volodymyr Sapsai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 3 14:34:23 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331484: Follow-up to r331378. Update tests to allow to use C atomics in C++. (authored by vsapsai, committed by ).
Herald added subscribers: llvm-commits, delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D46363?vs=144912&id=145094#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46363

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


Index: compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm
===================================================================
--- compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm
+++ compiler-rt/trunk/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/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
===================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
+++ compiler-rt/trunk/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/trunk/test/tsan/Darwin/gcd-groups-destructor.mm
===================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm
+++ compiler-rt/trunk/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.145094.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/be727e27/attachment.bin>


More information about the llvm-commits mailing list