[libc++] [test] Eliminate the libcpp-no-if-constexpr feature flag.
At this point, every supported compiler that claims a -std=c++17 mode should also support `if constexpr`. This was an issue for GCC 5 and GCC 6, but hasn't been an issue since GCC 7. (Our current minimum supported GCC version, IIUC, is GCC 10 or 11.) Differential Revision: https://reviews.llvm.org/D113348
This commit is contained in:
parent
9305e3b6d7
commit
9a3cb73460
|
@ -8,7 +8,6 @@
|
|||
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: windows
|
||||
// UNSUPPORTED: libcpp-no-if-constexpr
|
||||
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
|
||||
// UNSUPPORTED: libcxx-no-debug-mode
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: windows
|
||||
// UNSUPPORTED: libcpp-has-no-threads
|
||||
// UNSUPPORTED: libcpp-no-if-constexpr
|
||||
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
|
||||
// UNSUPPORTED: libcxx-no-debug-mode
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: windows
|
||||
// UNSUPPORTED: libcpp-no-if-constexpr
|
||||
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
|
||||
// UNSUPPORTED: libcxx-no-debug-mode
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: windows
|
||||
// UNSUPPORTED: libcpp-no-if-constexpr
|
||||
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
|
||||
// UNSUPPORTED: libcxx-no-debug-mode
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: windows
|
||||
// UNSUPPORTED: libcpp-no-if-constexpr
|
||||
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
|
||||
// UNSUPPORTED: libcxx-no-debug-mode
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
// UNSUPPORTED: c++03, c++11, c++14
|
||||
// UNSUPPORTED: windows
|
||||
// UNSUPPORTED: libcpp-no-if-constexpr
|
||||
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
|
||||
// UNSUPPORTED: libcxx-no-debug-mode
|
||||
|
|
|
@ -33,11 +33,6 @@
|
|||
#error This header may only be used in C++17 and greater
|
||||
#endif
|
||||
|
||||
#ifndef __cpp_if_constexpr
|
||||
#error These tests require if constexpr
|
||||
#endif
|
||||
|
||||
|
||||
namespace IteratorDebugChecks {
|
||||
|
||||
enum ContainerType {
|
||||
|
|
|
@ -36,7 +36,6 @@ DEFAULT_FEATURES = [
|
|||
Feature(name='-fsized-deallocation', when=lambda cfg: hasCompileFlag(cfg, '-fsized-deallocation')),
|
||||
Feature(name='-faligned-allocation', when=lambda cfg: hasCompileFlag(cfg, '-faligned-allocation')),
|
||||
Feature(name='fdelayed-template-parsing', when=lambda cfg: hasCompileFlag(cfg, '-fdelayed-template-parsing')),
|
||||
Feature(name='libcpp-no-if-constexpr', when=lambda cfg: '__cpp_if_constexpr' not in featureTestMacros(cfg)),
|
||||
Feature(name='libcpp-no-structured-bindings', when=lambda cfg: '__cpp_structured_bindings' not in featureTestMacros(cfg)),
|
||||
Feature(name='libcpp-no-concepts', when=lambda cfg: featureTestMacros(cfg).get('__cpp_concepts', 0) < 201907),
|
||||
Feature(name='has-fobjc-arc', when=lambda cfg: hasCompileFlag(cfg, '-xobjective-c++ -fobjc-arc') and
|
||||
|
|
Loading…
Reference in a new issue