summaryrefslogtreecommitdiff
path: root/test/tsan
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2017-03-27 09:45:38 +0000
committerSam McCall <sam.mccall@gmail.com>2017-03-27 09:45:38 +0000
commitbf19b3764d067f2d77d0784a0d24a072ded8bb0a (patch)
tree1d3d12ffd397ef70885bf832ba2e2e3acb1b8741 /test/tsan
parent8dbff7cb785cc4352d2df5351070ed7fc7dbf3f6 (diff)
Add --std=c++11 to tests that #include <atomic>
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r--test/tsan/custom_mutex0.cc2
-rw-r--r--test/tsan/custom_mutex1.cc2
-rw-r--r--test/tsan/custom_mutex2.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/tsan/custom_mutex0.cc b/test/tsan/custom_mutex0.cc
index 4079c72a1..998385ca1 100644
--- a/test/tsan/custom_mutex0.cc
+++ b/test/tsan/custom_mutex0.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O1 --std=c++11 %s -o %t && %run %t 2>&1 | FileCheck %s
#include "custom_mutex.h"
// Test that custom annoations provide normal mutex synchronization
diff --git a/test/tsan/custom_mutex1.cc b/test/tsan/custom_mutex1.cc
index ec7294ccd..06186515f 100644
--- a/test/tsan/custom_mutex1.cc
+++ b/test/tsan/custom_mutex1.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O1 --std=c++11 %s -o %t && %deflake %run %t 2>&1 | FileCheck %s
#include "custom_mutex.h"
// Test that failed TryLock does not induce parasitic synchronization.
diff --git a/test/tsan/custom_mutex2.cc b/test/tsan/custom_mutex2.cc
index 217b44466..9329cbc3f 100644
--- a/test/tsan/custom_mutex2.cc
+++ b/test/tsan/custom_mutex2.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O1 --std=c++11 %s -o %t && %deflake %run %t 2>&1 | FileCheck %s
#include "custom_mutex.h"
// Test that Broadcast does not induce parasitic synchronization.