Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Differential D144331 Diff 511892 libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | /* Constant Value | ||||
__cpp_lib_endian 201907L [C++20] | __cpp_lib_endian 201907L [C++20] | ||||
__cpp_lib_erase_if 202002L [C++20] | __cpp_lib_erase_if 202002L [C++20] | ||||
__cpp_lib_exchange_function 201304L [C++14] | __cpp_lib_exchange_function 201304L [C++14] | ||||
__cpp_lib_execution 201603L [C++17] | __cpp_lib_execution 201603L [C++17] | ||||
201902L [C++20] | 201902L [C++20] | ||||
__cpp_lib_expected 202202L [C++2b] | __cpp_lib_expected 202202L [C++2b] | ||||
__cpp_lib_filesystem 201703L [C++17] | __cpp_lib_filesystem 201703L [C++17] | ||||
__cpp_lib_format 202106L [C++20] | __cpp_lib_format 202106L [C++20] | ||||
__cpp_lib_formatters 202302L [C++2b] | |||||
__cpp_lib_forward_like 202207L [C++2b] | __cpp_lib_forward_like 202207L [C++2b] | ||||
__cpp_lib_gcd_lcm 201606L [C++17] | __cpp_lib_gcd_lcm 201606L [C++17] | ||||
__cpp_lib_generic_associative_lookup 201304L [C++14] | __cpp_lib_generic_associative_lookup 201304L [C++14] | ||||
__cpp_lib_generic_unordered_lookup 201811L [C++20] | __cpp_lib_generic_unordered_lookup 201811L [C++20] | ||||
__cpp_lib_hardware_interference_size 201703L [C++17] | __cpp_lib_hardware_interference_size 201703L [C++17] | ||||
__cpp_lib_has_unique_object_representations 201606L [C++17] | __cpp_lib_has_unique_object_representations 201606L [C++17] | ||||
__cpp_lib_hypot 201603L [C++17] | __cpp_lib_hypot 201603L [C++17] | ||||
__cpp_lib_incomplete_container_elements 201505L [C++17] | __cpp_lib_incomplete_container_elements 201505L [C++17] | ||||
▲ Show 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_filesystem | # ifdef __cpp_lib_filesystem | ||||
# error "__cpp_lib_filesystem should not be defined before c++17" | # error "__cpp_lib_filesystem should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_format | # ifdef __cpp_lib_format | ||||
# error "__cpp_lib_format should not be defined before c++20" | # error "__cpp_lib_format should not be defined before c++20" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_formatters | |||||
# error "__cpp_lib_formatters should not be defined before c++2b" | |||||
# endif | |||||
# ifdef __cpp_lib_forward_like | # ifdef __cpp_lib_forward_like | ||||
# error "__cpp_lib_forward_like should not be defined before c++2b" | # error "__cpp_lib_forward_like should not be defined before c++2b" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_gcd_lcm | # ifdef __cpp_lib_gcd_lcm | ||||
# error "__cpp_lib_gcd_lcm should not be defined before c++17" | # error "__cpp_lib_gcd_lcm should not be defined before c++17" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 639 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_filesystem | # ifdef __cpp_lib_filesystem | ||||
# error "__cpp_lib_filesystem should not be defined before c++17" | # error "__cpp_lib_filesystem should not be defined before c++17" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_format | # ifdef __cpp_lib_format | ||||
# error "__cpp_lib_format should not be defined before c++20" | # error "__cpp_lib_format should not be defined before c++20" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_formatters | |||||
# error "__cpp_lib_formatters should not be defined before c++2b" | |||||
# endif | |||||
# ifdef __cpp_lib_forward_like | # ifdef __cpp_lib_forward_like | ||||
# error "__cpp_lib_forward_like should not be defined before c++2b" | # error "__cpp_lib_forward_like should not be defined before c++2b" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_gcd_lcm | # ifdef __cpp_lib_gcd_lcm | ||||
# error "__cpp_lib_gcd_lcm should not be defined before c++17" | # error "__cpp_lib_gcd_lcm should not be defined before c++17" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 753 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_filesystem should not be defined when the requirement '!defined(_LIBCPP_AVAILABILITY_HAS_NO_FILESYSTEM)' is not met!" | # error "__cpp_lib_filesystem should not be defined when the requirement '!defined(_LIBCPP_AVAILABILITY_HAS_NO_FILESYSTEM)' is not met!" | ||||
# endif | # endif | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_format | # ifdef __cpp_lib_format | ||||
# error "__cpp_lib_format should not be defined before c++20" | # error "__cpp_lib_format should not be defined before c++20" | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_formatters | |||||
# error "__cpp_lib_formatters should not be defined before c++2b" | |||||
# endif | |||||
# ifdef __cpp_lib_forward_like | # ifdef __cpp_lib_forward_like | ||||
# error "__cpp_lib_forward_like should not be defined before c++2b" | # error "__cpp_lib_forward_like should not be defined before c++2b" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_gcd_lcm | # ifndef __cpp_lib_gcd_lcm | ||||
# error "__cpp_lib_gcd_lcm should be defined in c++17" | # error "__cpp_lib_gcd_lcm should be defined in c++17" | ||||
# endif | # endif | ||||
# if __cpp_lib_gcd_lcm != 201606L | # if __cpp_lib_gcd_lcm != 201606L | ||||
▲ Show 20 Lines • Show All 1,032 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_format should have the value 202106L in c++20" | # error "__cpp_lib_format should have the value 202106L in c++20" | ||||
# endif | # endif | ||||
# else // _LIBCPP_VERSION | # else // _LIBCPP_VERSION | ||||
# ifdef __cpp_lib_format | # ifdef __cpp_lib_format | ||||
# error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" | # error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" | ||||
# endif | # endif | ||||
# endif | # endif | ||||
# ifdef __cpp_lib_formatters | |||||
# error "__cpp_lib_formatters should not be defined before c++2b" | |||||
# endif | |||||
# ifdef __cpp_lib_forward_like | # ifdef __cpp_lib_forward_like | ||||
# error "__cpp_lib_forward_like should not be defined before c++2b" | # error "__cpp_lib_forward_like should not be defined before c++2b" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_gcd_lcm | # ifndef __cpp_lib_gcd_lcm | ||||
# error "__cpp_lib_gcd_lcm should be defined in c++20" | # error "__cpp_lib_gcd_lcm should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_gcd_lcm != 201606L | # if __cpp_lib_gcd_lcm != 201606L | ||||
▲ Show 20 Lines • Show All 1,221 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_format should have the value 202106L in c++2b" | # error "__cpp_lib_format should have the value 202106L in c++2b" | ||||
# endif | # endif | ||||
# else // _LIBCPP_VERSION | # else // _LIBCPP_VERSION | ||||
# ifdef __cpp_lib_format | # ifdef __cpp_lib_format | ||||
# error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" | # error "__cpp_lib_format should not be defined because it is unimplemented in libc++!" | ||||
# endif | # endif | ||||
# endif | # endif | ||||
# if !defined(_LIBCPP_VERSION) | |||||
# ifndef __cpp_lib_formatters | |||||
# error "__cpp_lib_formatters should be defined in c++2b" | |||||
# endif | |||||
# if __cpp_lib_formatters != 202302L | |||||
# error "__cpp_lib_formatters should have the value 202302L in c++2b" | |||||
# endif | |||||
# else // _LIBCPP_VERSION | |||||
# ifdef __cpp_lib_formatters | |||||
# error "__cpp_lib_formatters should not be defined because it is unimplemented in libc++!" | |||||
# endif | |||||
# endif | |||||
# ifndef __cpp_lib_forward_like | # ifndef __cpp_lib_forward_like | ||||
# error "__cpp_lib_forward_like should be defined in c++2b" | # error "__cpp_lib_forward_like should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_forward_like != 202207L | # if __cpp_lib_forward_like != 202207L | ||||
# error "__cpp_lib_forward_like should have the value 202207L in c++2b" | # error "__cpp_lib_forward_like should have the value 202207L in c++2b" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_gcd_lcm | # ifndef __cpp_lib_gcd_lcm | ||||
▲ Show 20 Lines • Show All 869 Lines • Show Last 20 Lines |