Differential D97394 Diff 332916 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 144 Lines • ▼ Show 20 Lines | /* Constant Value | ||||
__cpp_lib_transparent_operators 201210L [C++14] | __cpp_lib_transparent_operators 201210L [C++14] | ||||
201510L [C++17] | 201510L [C++17] | ||||
__cpp_lib_tuple_element_t 201402L [C++14] | __cpp_lib_tuple_element_t 201402L [C++14] | ||||
__cpp_lib_tuples_by_type 201304L [C++14] | __cpp_lib_tuples_by_type 201304L [C++14] | ||||
__cpp_lib_type_trait_variable_templates 201510L [C++17] | __cpp_lib_type_trait_variable_templates 201510L [C++17] | ||||
__cpp_lib_uncaught_exceptions 201411L [C++17] | __cpp_lib_uncaught_exceptions 201411L [C++17] | ||||
__cpp_lib_unordered_map_try_emplace 201411L [C++17] | __cpp_lib_unordered_map_try_emplace 201411L [C++17] | ||||
__cpp_lib_unwrap_ref 201811L [C++20] | __cpp_lib_unwrap_ref 201811L [C++20] | ||||
__cpp_lib_variant 201606L [C++17] | __cpp_lib_variant 202102L [C++17] | ||||
__cpp_lib_void_t 201411L [C++17] | __cpp_lib_void_t 201411L [C++17] | ||||
*/ | */ | ||||
#include <version> | #include <version> | ||||
#include "test_macros.h" | #include "test_macros.h" | ||||
#if TEST_STD_VER < 14 | #if TEST_STD_VER < 14 | ||||
▲ Show 20 Lines • Show All 1,923 Lines • ▼ Show 20 Lines | |||||
# ifdef __cpp_lib_unwrap_ref | # ifdef __cpp_lib_unwrap_ref | ||||
# error "__cpp_lib_unwrap_ref should not be defined before c++20" | # error "__cpp_lib_unwrap_ref should not be defined before c++20" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_variant | # ifndef __cpp_lib_variant | ||||
# error "__cpp_lib_variant should be defined in c++17" | # error "__cpp_lib_variant should be defined in c++17" | ||||
# endif | # endif | ||||
# if __cpp_lib_variant != 201606L | # if __cpp_lib_variant != 202102L | ||||
# error "__cpp_lib_variant should have the value 201606L in c++17" | # error "__cpp_lib_variant should have the value 202102L in c++17" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_void_t | # ifndef __cpp_lib_void_t | ||||
# error "__cpp_lib_void_t should be defined in c++17" | # error "__cpp_lib_void_t should be defined in c++17" | ||||
# endif | # endif | ||||
# if __cpp_lib_void_t != 201411L | # if __cpp_lib_void_t != 201411L | ||||
# error "__cpp_lib_void_t should have the value 201411L in c++17" | # error "__cpp_lib_void_t should have the value 201411L in c++17" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 782 Lines • ▼ Show 20 Lines | |||||
# ifndef __cpp_lib_map_try_emplace | # ifndef __cpp_lib_map_try_emplace | ||||
# error "__cpp_lib_map_try_emplace should be defined in c++20" | # error "__cpp_lib_map_try_emplace should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_map_try_emplace != 201411L | # if __cpp_lib_map_try_emplace != 201411L | ||||
# error "__cpp_lib_map_try_emplace should have the value 201411L in c++20" | # error "__cpp_lib_map_try_emplace should have the value 201411L in c++20" | ||||
# endif | # endif | ||||
# ifndef _LIBCPP_HAS_NO_CONCEPTS | # if defined(__cpp_concepts) && __cpp_concepts >= 201907L | ||||
# ifndef __cpp_lib_math_constants | # ifndef __cpp_lib_math_constants | ||||
# error "__cpp_lib_math_constants should be defined in c++20" | # error "__cpp_lib_math_constants should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_math_constants != 201907L | # if __cpp_lib_math_constants != 201907L | ||||
# error "__cpp_lib_math_constants should have the value 201907L in c++20" | # error "__cpp_lib_math_constants should have the value 201907L in c++20" | ||||
# endif | # endif | ||||
# else | # else | ||||
# ifdef __cpp_lib_math_constants | # ifdef __cpp_lib_math_constants | ||||
# error "__cpp_lib_math_constants should not be defined when defined(__cpp_concepts) && __cpp_concepts >= 201907L is not defined!" | # error "__cpp_lib_math_constants should not be defined when defined(__cpp_concepts) && __cpp_concepts >= 201907L is not defined!" | ||||
# endif | # endif | ||||
# endif // _LIBCPP_HAS_NO_CONCEPTS | # endif | ||||
# if !defined(_LIBCPP_VERSION) | # if !defined(_LIBCPP_VERSION) | ||||
# ifndef __cpp_lib_math_special_functions | # ifndef __cpp_lib_math_special_functions | ||||
# error "__cpp_lib_math_special_functions should be defined in c++20" | # error "__cpp_lib_math_special_functions should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_math_special_functions != 201603L | # if __cpp_lib_math_special_functions != 201603L | ||||
# error "__cpp_lib_math_special_functions should have the value 201603L in c++20" | # error "__cpp_lib_math_special_functions should have the value 201603L in c++20" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 383 Lines • ▼ Show 20 Lines | |||||
# endif | # endif | ||||
# if __cpp_lib_unwrap_ref != 201811L | # if __cpp_lib_unwrap_ref != 201811L | ||||
# error "__cpp_lib_unwrap_ref should have the value 201811L in c++20" | # error "__cpp_lib_unwrap_ref should have the value 201811L in c++20" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_variant | # ifndef __cpp_lib_variant | ||||
# error "__cpp_lib_variant should be defined in c++20" | # error "__cpp_lib_variant should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_variant != 201606L | # if __cpp_lib_variant != 202102L | ||||
# error "__cpp_lib_variant should have the value 201606L in c++20" | # error "__cpp_lib_variant should have the value 202102L in c++20" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_void_t | # ifndef __cpp_lib_void_t | ||||
# error "__cpp_lib_void_t should be defined in c++20" | # error "__cpp_lib_void_t should be defined in c++20" | ||||
# endif | # endif | ||||
# if __cpp_lib_void_t != 201411L | # if __cpp_lib_void_t != 201411L | ||||
# error "__cpp_lib_void_t should have the value 201411L in c++20" | # error "__cpp_lib_void_t should have the value 201411L in c++20" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 785 Lines • ▼ Show 20 Lines | |||||
# ifndef __cpp_lib_map_try_emplace | # ifndef __cpp_lib_map_try_emplace | ||||
# error "__cpp_lib_map_try_emplace should be defined in c++2b" | # error "__cpp_lib_map_try_emplace should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_map_try_emplace != 201411L | # if __cpp_lib_map_try_emplace != 201411L | ||||
# error "__cpp_lib_map_try_emplace should have the value 201411L in c++2b" | # error "__cpp_lib_map_try_emplace should have the value 201411L in c++2b" | ||||
# endif | # endif | ||||
# if !_LIBCPP_HAS_NO_CONCEPTS | # if defined(__cpp_concepts) && __cpp_concepts >= 201907L | ||||
Quuxplusone: Make sure to re-run the generator scripts before landing. This diff //should// go away, I think. | |||||
# ifndef __cpp_lib_math_constants | # ifndef __cpp_lib_math_constants | ||||
# error "__cpp_lib_math_constants should be defined in c++2b" | # error "__cpp_lib_math_constants should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_math_constants != 201907L | # if __cpp_lib_math_constants != 201907L | ||||
# error "__cpp_lib_math_constants should have the value 201907L in c++2b" | # error "__cpp_lib_math_constants should have the value 201907L in c++2b" | ||||
# endif | # endif | ||||
# else | # else | ||||
# ifdef __cpp_lib_math_constants | # ifdef __cpp_lib_math_constants | ||||
# error "__cpp_lib_math_constants should not be defined when defined(__cpp_concepts) && __cpp_concepts >= 201907L is not defined!" | # error "__cpp_lib_math_constants should not be defined when defined(__cpp_concepts) && __cpp_concepts >= 201907L is not defined!" | ||||
# endif | # endif | ||||
# endif // !_LIBCPP_HAS_NO_CONCEPTS | # endif | ||||
# if !defined(_LIBCPP_VERSION) | # if !defined(_LIBCPP_VERSION) | ||||
# ifndef __cpp_lib_math_special_functions | # ifndef __cpp_lib_math_special_functions | ||||
# error "__cpp_lib_math_special_functions should be defined in c++2b" | # error "__cpp_lib_math_special_functions should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_math_special_functions != 201603L | # if __cpp_lib_math_special_functions != 201603L | ||||
# error "__cpp_lib_math_special_functions should have the value 201603L in c++2b" | # error "__cpp_lib_math_special_functions should have the value 201603L in c++2b" | ||||
# endif | # endif | ||||
▲ Show 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | |||||
# endif | # endif | ||||
# if __cpp_lib_unwrap_ref != 201811L | # if __cpp_lib_unwrap_ref != 201811L | ||||
# error "__cpp_lib_unwrap_ref should have the value 201811L in c++2b" | # error "__cpp_lib_unwrap_ref should have the value 201811L in c++2b" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_variant | # ifndef __cpp_lib_variant | ||||
# error "__cpp_lib_variant should be defined in c++2b" | # error "__cpp_lib_variant should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_variant != 201606L | # if __cpp_lib_variant != 202102L | ||||
# error "__cpp_lib_variant should have the value 201606L in c++2b" | # error "__cpp_lib_variant should have the value 202102L in c++2b" | ||||
# endif | # endif | ||||
# ifndef __cpp_lib_void_t | # ifndef __cpp_lib_void_t | ||||
# error "__cpp_lib_void_t should be defined in c++2b" | # error "__cpp_lib_void_t should be defined in c++2b" | ||||
# endif | # endif | ||||
# if __cpp_lib_void_t != 201411L | # if __cpp_lib_void_t != 201411L | ||||
# error "__cpp_lib_void_t should have the value 201411L in c++2b" | # error "__cpp_lib_void_t should have the value 201411L in c++2b" | ||||
# endif | # endif | ||||
#endif // TEST_STD_VER > 20 | #endif // TEST_STD_VER > 20 | ||||
int main(int, char**) { return 0; } | int main(int, char**) { return 0; } |
Make sure to re-run the generator scripts before landing. This diff should go away, I think.