Fix test failure on compilers w/o deduction guides
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@325205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
|
||||
// <string>
|
||||
// UNSUPPORTED: c++98, c++03, c++11, c++14
|
||||
// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8, clang-3.9, clang-4.0
|
||||
// UNSUPPORTED: apple-clang-6, apple-clang-7, apple-clang-8.0
|
||||
// XFAIL: libcpp-no-deduction-guides
|
||||
|
||||
// template<class InputIterator>
|
||||
// basic_string(InputIterator begin, InputIterator end,
|
||||
|
||||
@@ -463,7 +463,8 @@ class Configuration(object):
|
||||
if '__cpp_structured_bindings' not in macros:
|
||||
self.config.available_features.add('libcpp-no-structured-bindings')
|
||||
|
||||
if '__cpp_deduction_guides' not in macros:
|
||||
if '__cpp_deduction_guides' not in macros or \
|
||||
int(macros['__cpp_deduction_guides']) < 201611:
|
||||
self.config.available_features.add('libcpp-no-deduction-guides')
|
||||
|
||||
if self.is_windows:
|
||||
|
||||
Reference in New Issue
Block a user