Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Differential D136522 Diff 516117 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 72 Lines • ▼ Show 20 Lines | /* Constant Value | ||||
__cpp_lib_enable_shared_from_this 201603L [C++17] | __cpp_lib_enable_shared_from_this 201603L [C++17] | ||||
__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_find_last 202207L [C++2b] | |||||
__cpp_lib_format 202106L [C++20] | __cpp_lib_format 202106L [C++20] | ||||
__cpp_lib_format_ranges 202207L [C++2b] | __cpp_lib_format_ranges 202207L [C++2b] | ||||
__cpp_lib_formatters 202302L [C++2b] | __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] | ||||
▲ Show 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_expected | # ifdef __cpp_lib_expected | ||||
# error "__cpp_lib_expected should not be defined before c++2b" | # error "__cpp_lib_expected should not be defined before c++2b" | ||||
# endif | # endif | ||||
# 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_find_last | |||||
# error "__cpp_lib_find_last should not be defined before c++2b" | |||||
# 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_format_ranges | # ifdef __cpp_lib_format_ranges | ||||
# error "__cpp_lib_format_ranges should not be defined before c++2b" | # error "__cpp_lib_format_ranges should not be defined before c++2b" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 647 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_expected | # ifdef __cpp_lib_expected | ||||
# error "__cpp_lib_expected should not be defined before c++2b" | # error "__cpp_lib_expected should not be defined before c++2b" | ||||
# endif | # endif | ||||
# 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_find_last | |||||
# error "__cpp_lib_find_last should not be defined before c++2b" | |||||
# 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_format_ranges | # ifdef __cpp_lib_format_ranges | ||||
# error "__cpp_lib_format_ranges should not be defined before c++2b" | # error "__cpp_lib_format_ranges should not be defined before c++2b" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 761 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_filesystem should have the value 201703L in c++17" | # error "__cpp_lib_filesystem should have the value 201703L in c++17" | ||||
# endif | # endif | ||||
# else | # else | ||||
# ifdef __cpp_lib_filesystem | # ifdef __cpp_lib_filesystem | ||||
# 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_find_last | |||||
# error "__cpp_lib_find_last should not be defined before c++2b" | |||||
# 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_format_ranges | # ifdef __cpp_lib_format_ranges | ||||
# error "__cpp_lib_format_ranges should not be defined before c++2b" | # error "__cpp_lib_format_ranges should not be defined before c++2b" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 1,031 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_filesystem should have the value 201703L in c++20" | # error "__cpp_lib_filesystem should have the value 201703L in c++20" | ||||
# endif | # endif | ||||
# else | # else | ||||
# ifdef __cpp_lib_filesystem | # ifdef __cpp_lib_filesystem | ||||
# 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_find_last | |||||
# error "__cpp_lib_find_last should not be defined before c++2b" | |||||
# endif | |||||
# if !defined(_LIBCPP_VERSION) | # if !defined(_LIBCPP_VERSION) | ||||
# ifndef __cpp_lib_format | # ifndef __cpp_lib_format | ||||
# error "__cpp_lib_format should be defined in c++20" | # error "__cpp_lib_format should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_format != 202106L | # if __cpp_lib_format != 202106L | ||||
# 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 | ||||
▲ Show 20 Lines • Show All 1,229 Lines • ▼ Show 20 Lines | |||||
# error "__cpp_lib_filesystem should have the value 201703L in c++2b" | # error "__cpp_lib_filesystem should have the value 201703L in c++2b" | ||||
# endif | # endif | ||||
# else | # else | ||||
# ifdef __cpp_lib_filesystem | # ifdef __cpp_lib_filesystem | ||||
# 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 | ||||
# ifndef __cpp_lib_find_last | |||||
# error "__cpp_lib_find_last should be defined in c++2b" | |||||
# endif | |||||
# if __cpp_lib_find_last != 202207L | |||||
# error "__cpp_lib_find_last should have the value 202207L in c++2b" | |||||
# endif | |||||
# if !defined(_LIBCPP_VERSION) | # if !defined(_LIBCPP_VERSION) | ||||
# ifndef __cpp_lib_format | # ifndef __cpp_lib_format | ||||
# error "__cpp_lib_format should be defined in c++2b" | # error "__cpp_lib_format should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_format != 202106L | # if __cpp_lib_format != 202106L | ||||
# 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 | ||||
▲ Show 20 Lines • Show All 908 Lines • Show Last 20 Lines |