Fix test failure on compilers w/o deduction guides

llvm-svn: 325205
This commit is contained in:
Eric Fiselier 2018-02-15 02:41:19 +00:00
parent 44a8471227
commit 9491643c4b
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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: