diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-03-27 09:45:38 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-03-27 09:45:38 +0000 |
commit | bf19b3764d067f2d77d0784a0d24a072ded8bb0a (patch) | |
tree | 1d3d12ffd397ef70885bf832ba2e2e3acb1b8741 /test/tsan | |
parent | 8dbff7cb785cc4352d2df5351070ed7fc7dbf3f6 (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.cc | 2 | ||||
-rw-r--r-- | test/tsan/custom_mutex1.cc | 2 | ||||
-rw-r--r-- | test/tsan/custom_mutex2.cc | 2 |
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. |