Differential D97394 Diff 332916 libcxx/test/std/language.support/support.limits/support.limits.general/numbers.version.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/language.support/support.limits/support.limits.general/numbers.version.pass.cpp
Show All 36 Lines | |||||
#elif TEST_STD_VER == 17 | #elif TEST_STD_VER == 17 | ||||
# ifdef __cpp_lib_math_constants | # ifdef __cpp_lib_math_constants | ||||
# error "__cpp_lib_math_constants should not be defined before c++20" | # error "__cpp_lib_math_constants should not be defined before c++20" | ||||
# endif | # endif | ||||
#elif TEST_STD_VER == 20 | #elif TEST_STD_VER == 20 | ||||
# 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 | ||||
#elif TEST_STD_VER > 20 | #elif TEST_STD_VER > 20 | ||||
# 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++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 | ||||
#endif // TEST_STD_VER > 20 | #endif // TEST_STD_VER > 20 | ||||
int main(int, char**) { return 0; } | int main(int, char**) { return 0; } |