summaryrefslogtreecommitdiffstats
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
commitcf95f24a07aa0dedbee1d7b53cada8b78db0e308 (patch)
tree0305b444c1e9b4b688c3eccb60e42f1f66ecead4
parentfa9e36e9c49a9c2c180cdc2d08768ad792f1f571 (diff)
downloadbcm5719-llvm-cf95f24a07aa0dedbee1d7b53cada8b78db0e308.tar.gz
bcm5719-llvm-cf95f24a07aa0dedbee1d7b53cada8b78db0e308.zip
Add --std=c++11 to tests that #include <atomic>
llvm-svn: 298836
-rw-r--r--compiler-rt/test/tsan/custom_mutex0.cc2
-rw-r--r--compiler-rt/test/tsan/custom_mutex1.cc2
-rw-r--r--compiler-rt/test/tsan/custom_mutex2.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/tsan/custom_mutex0.cc b/compiler-rt/test/tsan/custom_mutex0.cc
index 4079c72a103..998385ca1cf 100644
--- a/compiler-rt/test/tsan/custom_mutex0.cc
+++ b/compiler-rt/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/compiler-rt/test/tsan/custom_mutex1.cc b/compiler-rt/test/tsan/custom_mutex1.cc
index ec7294ccd4f..06186515f69 100644
--- a/compiler-rt/test/tsan/custom_mutex1.cc
+++ b/compiler-rt/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/compiler-rt/test/tsan/custom_mutex2.cc b/compiler-rt/test/tsan/custom_mutex2.cc
index 217b4446672..9329cbc3f43 100644
--- a/compiler-rt/test/tsan/custom_mutex2.cc
+++ b/compiler-rt/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.
OpenPOWER on IntegriCloud