[libcxx-commits] [libcxx] bf90b8f - [libc++] Fix failing concepts tests

Eric Fiselier via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 8 15:25:22 PDT 2020


Author: Eric Fiselier
Date: 2020-04-08T18:25:07-04:00
New Revision: bf90b8fc25ca0fc112c4beacbc9090980c9c7295

URL: https://github.com/llvm/llvm-project/commit/bf90b8fc25ca0fc112c4beacbc9090980c9c7295
DIFF: https://github.com/llvm/llvm-project/commit/bf90b8fc25ca0fc112c4beacbc9090980c9c7295.diff

LOG: [libc++] Fix failing concepts tests

Added: 
    

Modified: 
    libcxx/test/std/concepts/lang/same_as.pass.cpp
    libcxx/utils/libcxx/test/config.py

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/concepts/lang/same_as.pass.cpp b/libcxx/test/std/concepts/lang/same_as.pass.cpp
index c41d6c47ac82..76e019da438c 100644
--- a/libcxx/test/std/concepts/lang/same_as.pass.cpp
+++ b/libcxx/test/std/concepts/lang/same_as.pass.cpp
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++98, c++03, c++11, c++14, c++17
+// UNSUPPORTED: libcpp-no-concepts
 
 // template<class T, class U>
 // concept same_as;

diff  --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 88010f850b4c..b29910ad00ba 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -472,6 +472,10 @@ def configure_features(self):
                 intMacroValue(macros['__cpp_deduction_guides']) < 201611:
             self.config.available_features.add('libcpp-no-deduction-guides')
 
+        if '__cpp_concepts' not in macros or \
+                intMacroValue(macros['__cpp_concepts']) < 201811:
+            self.config.available_features.add('libcpp-no-concepts')
+
         if self.target_info.is_windows():
             self.config.available_features.add('windows')
             if self.cxx_stdlib_under_test == 'libc++':


        


More information about the libcxx-commits mailing list