diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-07-09 21:14:36 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-07-09 21:14:36 +0000 |
commit | a0619b8ba220b4183cfc63748ac9cb78f8721af4 (patch) | |
tree | c7ff9434f107c32f8d1fef45fef4195efafd182a | |
parent | bcdfb408444c657422499a2274eb377879588e89 (diff) | |
download | compiler-rt-a0619b8ba220b4183cfc63748ac9cb78f8721af4.tar.gz |
test: Use %clangxx in objc++ test files
These test in this change are objc++, but are built using %clang, not %clangxx.
The reason this works is the driver has been adding -lc++ for sanitizer enabled
builds. By making these tests use %clangxx, they no longer depend on the driver
linking to c++. Doing so will allow us to prevent overlinking of libc++ for
applications.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@274989 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/asan/TestCases/Darwin/address-range-limit.mm | 4 | ||||
-rw-r--r-- | test/tsan/Darwin/gcd-blocks.mm | 2 | ||||
-rw-r--r-- | test/tsan/Darwin/gcd-groups-destructor.mm | 2 | ||||
-rw-r--r-- | test/tsan/Darwin/libcxx-shared-ptr-recursive.mm | 2 | ||||
-rw-r--r-- | test/tsan/Darwin/libcxx-shared-ptr-stress.mm | 2 | ||||
-rw-r--r-- | test/tsan/Darwin/libcxx-shared-ptr.mm | 2 | ||||
-rw-r--r-- | test/tsan/Darwin/osatomics-add.mm | 2 | ||||
-rw-r--r-- | test/tsan/Darwin/osatomics-list.mm | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/test/asan/TestCases/Darwin/address-range-limit.mm b/test/asan/TestCases/Darwin/address-range-limit.mm index a6906766d..ba9175a2c 100644 --- a/test/asan/TestCases/Darwin/address-range-limit.mm +++ b/test/asan/TestCases/Darwin/address-range-limit.mm @@ -1,7 +1,7 @@ // Regression test for https://code.google.com/p/address-sanitizer/issues/detail?id=368. -// RUN: %clang_asan %s -Wno-deprecated-declarations -flat_namespace -bundle -undefined suppress -o %t.bundle -// RUN: %clang_asan %s -Wno-deprecated-declarations -o %t -framework Foundation && not %run %t 2>&1 | FileCheck %s +// RUN: %clangxx_asan %s -Wno-deprecated-declarations -flat_namespace -bundle -undefined suppress -o %t.bundle +// RUN: %clangxx_asan %s -Wno-deprecated-declarations -o %t -framework Foundation && not %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> #import <mach-o/dyld.h> diff --git a/test/tsan/Darwin/gcd-blocks.mm b/test/tsan/Darwin/gcd-blocks.mm index 0dbff2758..e0082605f 100644 --- a/test/tsan/Darwin/gcd-blocks.mm +++ b/test/tsan/Darwin/gcd-blocks.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation +// RUN: %clangxx_tsan %s -o %t -framework Foundation // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/test/tsan/Darwin/gcd-groups-destructor.mm b/test/tsan/Darwin/gcd-groups-destructor.mm index 641be0009..19c2c9bd1 100644 --- a/test/tsan/Darwin/gcd-groups-destructor.mm +++ b/test/tsan/Darwin/gcd-groups-destructor.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation +// RUN: %clangxx_tsan %s -o %t -framework Foundation // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm b/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm index fc5482ac3..eea02dc56 100644 --- a/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm +++ b/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation +// RUN: %clangxx_tsan %s -o %t -framework Foundation // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/test/tsan/Darwin/libcxx-shared-ptr-stress.mm b/test/tsan/Darwin/libcxx-shared-ptr-stress.mm index 2aa5582aa..7c36729f0 100644 --- a/test/tsan/Darwin/libcxx-shared-ptr-stress.mm +++ b/test/tsan/Darwin/libcxx-shared-ptr-stress.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation +// RUN: %clangxx_tsan %s -o %t -framework Foundation // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/test/tsan/Darwin/libcxx-shared-ptr.mm b/test/tsan/Darwin/libcxx-shared-ptr.mm index e1ea2261d..6187c438f 100644 --- a/test/tsan/Darwin/libcxx-shared-ptr.mm +++ b/test/tsan/Darwin/libcxx-shared-ptr.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation +// RUN: %clangxx_tsan %s -o %t -framework Foundation // RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/test/tsan/Darwin/osatomics-add.mm b/test/tsan/Darwin/osatomics-add.mm index 65be24dc8..087958eff 100644 --- a/test/tsan/Darwin/osatomics-add.mm +++ b/test/tsan/Darwin/osatomics-add.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation -std=c++11 +// RUN: %clangxx_tsan %s -o %t -framework Foundation -std=c++11 // RUN: %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/test/tsan/Darwin/osatomics-list.mm b/test/tsan/Darwin/osatomics-list.mm index 2543111c6..6c2fbe7e5 100644 --- a/test/tsan/Darwin/osatomics-list.mm +++ b/test/tsan/Darwin/osatomics-list.mm @@ -1,4 +1,4 @@ -// RUN: %clang_tsan %s -o %t -framework Foundation -std=c++11 +// RUN: %clangxx_tsan %s -o %t -framework Foundation -std=c++11 // RUN: %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> |