Differential D113408 Diff 394654 libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | /* Constant Value | ||||
__cpp_lib_logical_traits 201510L [C++17] | __cpp_lib_logical_traits 201510L [C++17] | ||||
__cpp_lib_make_from_tuple 201606L [C++17] | __cpp_lib_make_from_tuple 201606L [C++17] | ||||
__cpp_lib_make_reverse_iterator 201402L [C++14] | __cpp_lib_make_reverse_iterator 201402L [C++14] | ||||
__cpp_lib_make_unique 201304L [C++14] | __cpp_lib_make_unique 201304L [C++14] | ||||
__cpp_lib_map_try_emplace 201411L [C++17] | __cpp_lib_map_try_emplace 201411L [C++17] | ||||
__cpp_lib_math_constants 201907L [C++20] | __cpp_lib_math_constants 201907L [C++20] | ||||
__cpp_lib_math_special_functions 201603L [C++17] | __cpp_lib_math_special_functions 201603L [C++17] | ||||
__cpp_lib_memory_resource 201603L [C++17] | __cpp_lib_memory_resource 201603L [C++17] | ||||
__cpp_lib_monadic_optional 202110L [C++2b] | |||||
__cpp_lib_node_extract 201606L [C++17] | __cpp_lib_node_extract 201606L [C++17] | ||||
__cpp_lib_nonmember_container_access 201411L [C++17] | __cpp_lib_nonmember_container_access 201411L [C++17] | ||||
__cpp_lib_not_fn 201603L [C++17] | __cpp_lib_not_fn 201603L [C++17] | ||||
__cpp_lib_null_iterators 201304L [C++14] | __cpp_lib_null_iterators 201304L [C++14] | ||||
__cpp_lib_optional 201606L [C++17] | __cpp_lib_optional 201606L [C++17] | ||||
__cpp_lib_parallel_algorithm 201603L [C++17] | __cpp_lib_parallel_algorithm 201603L [C++17] | ||||
__cpp_lib_polymorphic_allocator 201902L [C++20] | __cpp_lib_polymorphic_allocator 201902L [C++20] | ||||
__cpp_lib_quoted_string_io 201304L [C++14] | __cpp_lib_quoted_string_io 201304L [C++14] | ||||
▲ Show 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_math_special_functions | # ifdef __cpp_lib_math_special_functions | ||||
# error "__cpp_lib_math_special_functions should not be defined before c++17" | # error "__cpp_lib_math_special_functions should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_memory_resource | # ifdef __cpp_lib_memory_resource | ||||
# error "__cpp_lib_memory_resource should not be defined before c++17" | # error "__cpp_lib_memory_resource should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_monadic_optional | |||||
# error "__cpp_lib_monadic_optional should not be defined before c++2b" | |||||
# endif | |||||
# ifdef __cpp_lib_node_extract | # ifdef __cpp_lib_node_extract | ||||
# error "__cpp_lib_node_extract should not be defined before c++17" | # error "__cpp_lib_node_extract should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_nonmember_container_access | # ifdef __cpp_lib_nonmember_container_access | ||||
# error "__cpp_lib_nonmember_container_access should not be defined before c++17" | # error "__cpp_lib_nonmember_container_access should not be defined before c++17" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 548 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_math_special_functions | # ifdef __cpp_lib_math_special_functions | ||||
# error "__cpp_lib_math_special_functions should not be defined before c++17" | # error "__cpp_lib_math_special_functions should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_memory_resource | # ifdef __cpp_lib_memory_resource | ||||
# error "__cpp_lib_memory_resource should not be defined before c++17" | # error "__cpp_lib_memory_resource should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_monadic_optional | |||||
# error "__cpp_lib_monadic_optional should not be defined before c++2b" | |||||
# endif | |||||
# ifdef __cpp_lib_node_extract | # ifdef __cpp_lib_node_extract | ||||
# error "__cpp_lib_node_extract should not be defined before c++17" | # error "__cpp_lib_node_extract should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_nonmember_container_access | # ifdef __cpp_lib_nonmember_container_access | ||||
# error "__cpp_lib_nonmember_container_access should not be defined before c++17" | # error "__cpp_lib_nonmember_container_access should not be defined before c++17" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 710 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_memory_resource should have the value 201603L in c++17" | # error "__cpp_lib_memory_resource should have the value 201603L in c++17" | ||||
# endif | # endif | ||||
# else // _LIBCPP_VERSION | # else // _LIBCPP_VERSION | ||||
# ifdef __cpp_lib_memory_resource | # ifdef __cpp_lib_memory_resource | ||||
# error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!" | # error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!" | ||||
# endif | # endif | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_monadic_optional | |||||
# error "__cpp_lib_monadic_optional should not be defined before c++2b" | |||||
# endif | |||||
# ifndef __cpp_lib_node_extract | # ifndef __cpp_lib_node_extract | ||||
# error "__cpp_lib_node_extract should be defined in c++17" | # error "__cpp_lib_node_extract should be defined in c++17" | ||||
# endif | # endif | ||||
# if __cpp_lib_node_extract != 201606L | # if __cpp_lib_node_extract != 201606L | ||||
# error "__cpp_lib_node_extract should have the value 201606L in c++17" | # error "__cpp_lib_node_extract should have the value 201606L in c++17" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_nonmember_container_access | # ifndef __cpp_lib_nonmember_container_access | ||||
▲ Show 20 Lines • Show All 1,022 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_memory_resource should have the value 201603L in c++20" | # error "__cpp_lib_memory_resource should have the value 201603L in c++20" | ||||
# endif | # endif | ||||
# else // _LIBCPP_VERSION | # else // _LIBCPP_VERSION | ||||
# ifdef __cpp_lib_memory_resource | # ifdef __cpp_lib_memory_resource | ||||
# error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!" | # error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!" | ||||
# endif | # endif | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_monadic_optional | |||||
# error "__cpp_lib_monadic_optional should not be defined before c++2b" | |||||
# endif | |||||
# ifndef __cpp_lib_node_extract | # ifndef __cpp_lib_node_extract | ||||
# error "__cpp_lib_node_extract should be defined in c++20" | # error "__cpp_lib_node_extract should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_node_extract != 201606L | # if __cpp_lib_node_extract != 201606L | ||||
# error "__cpp_lib_node_extract should have the value 201606L in c++20" | # error "__cpp_lib_node_extract should have the value 201606L in c++20" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_nonmember_container_access | # ifndef __cpp_lib_nonmember_container_access | ||||
▲ Show 20 Lines • Show All 1,115 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_memory_resource should have the value 201603L in c++2b" | # error "__cpp_lib_memory_resource should have the value 201603L in c++2b" | ||||
# endif | # endif | ||||
# else // _LIBCPP_VERSION | # else // _LIBCPP_VERSION | ||||
# ifdef __cpp_lib_memory_resource | # ifdef __cpp_lib_memory_resource | ||||
# error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!" | # error "__cpp_lib_memory_resource should not be defined because it is unimplemented in libc++!" | ||||
# endif | # endif | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_monadic_optional | |||||
# error "__cpp_lib_monadic_optional should be defined in c++2b" | |||||
# endif | |||||
# if __cpp_lib_monadic_optional != 202110L | |||||
# error "__cpp_lib_monadic_optional should have the value 202110L in c++2b" | |||||
# endif | |||||
# ifndef __cpp_lib_node_extract | # ifndef __cpp_lib_node_extract | ||||
# error "__cpp_lib_node_extract should be defined in c++2b" | # error "__cpp_lib_node_extract should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_node_extract != 201606L | # if __cpp_lib_node_extract != 201606L | ||||
# error "__cpp_lib_node_extract should have the value 201606L in c++2b" | # error "__cpp_lib_node_extract should have the value 201606L in c++2b" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_nonmember_container_access | # ifndef __cpp_lib_nonmember_container_access | ||||
▲ Show 20 Lines • Show All 402 Lines • Show Last 20 Lines |