forked from OSchip/llvm-project
Fix test failure on compilers w/o deduction guides
llvm-svn: 325205
This commit is contained in:
parent
44a8471227
commit
9491643c4b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue