summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/throw_invoke_test.cc
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-05-14 15:48:49 +0000
committerDan Liew <dan@su-root.co.uk>2018-05-14 15:48:49 +0000
commit7bb5a5d2e5f6c07afefd5fde2d7f858663b3da08 (patch)
tree8133360fcd3a153c0d0131b79924ec6af1dce3a4 /test/asan/TestCases/throw_invoke_test.cc
parent504c4196afe17ab91d73b6a4b691c911c042908b (diff)
Fix another case where libstdc++ is being inappropriately requested (see
r328775) for all platforms. Given that this is the second occurance of this problem it seemed worth fixing this problem in a more generic way. r328775 has been reverted and now a substitution `%linux_static_libstdcplusplus` has been provided. This substitution expands to Clang driver arguments to use a static libstdc++ on Linux and on all other platforms it expands to nothing. The `asan/TestCases/throw_invoke_test.cc` and `test/tsan/static_init6.cc` test cases now use this substitution. rdar://problem/39948818 Differential Revision: https://reviews.llvm.org/D46401 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/throw_invoke_test.cc')
-rw-r--r--test/asan/TestCases/throw_invoke_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/asan/TestCases/throw_invoke_test.cc b/test/asan/TestCases/throw_invoke_test.cc
index ade8c0cac..bbfa1c7b9 100644
--- a/test/asan/TestCases/throw_invoke_test.cc
+++ b/test/asan/TestCases/throw_invoke_test.cc
@@ -1,4 +1,5 @@
// RUN: %clangxx_asan %s -o %t && %run %t
+// RUN: %clangxx_asan %s -o %t %linux_static_libstdcplusplus && %run %t
#include <stdio.h>
static volatile int zero = 0;