summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2019-04-25 12:11:43 +0000
committerMarshall Clow <mclow.lists@gmail.com>2019-04-25 12:11:43 +0000
commitd3d0ecbfd52cca2c7e0f4478e5682c493fd99ef2 (patch)
treefbac170739e7b24bba17e84dfa2fe7d4cb2e9841 /libcxx/test/std/language.support
parent31aa2ea3a3f9669e5783654117804f055f787f7a (diff)
downloadbcm5719-llvm-d3d0ecbfd52cca2c7e0f4478e5682c493fd99ef2.tar.gz
bcm5719-llvm-d3d0ecbfd52cca2c7e0f4478e5682c493fd99ef2.zip
Implement midpoint for floating point types. Reviewed as https://reviews.llvm.org/D61014.
llvm-svn: 359184
Diffstat (limited to 'libcxx/test/std/language.support')
-rw-r--r--libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp20
-rw-r--r--libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp20
2 files changed, 40 insertions, 0 deletions
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp
index eb5eb557b7b..c43d7175e1e 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.pass.cpp
@@ -15,6 +15,7 @@
/* Constant Value
__cpp_lib_gcd_lcm 201606L [C++17]
+ __cpp_lib_interpolate 201902L [C++2a]
__cpp_lib_parallel_algorithm 201603L [C++17]
*/
@@ -27,6 +28,10 @@
# error "__cpp_lib_gcd_lcm should not be defined before c++17"
# endif
+# ifdef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should not be defined before c++2a"
+# endif
+
# ifdef __cpp_lib_parallel_algorithm
# error "__cpp_lib_parallel_algorithm should not be defined before c++17"
# endif
@@ -37,6 +42,10 @@
# error "__cpp_lib_gcd_lcm should not be defined before c++17"
# endif
+# ifdef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should not be defined before c++2a"
+# endif
+
# ifdef __cpp_lib_parallel_algorithm
# error "__cpp_lib_parallel_algorithm should not be defined before c++17"
# endif
@@ -50,6 +59,10 @@
# error "__cpp_lib_gcd_lcm should have the value 201606L in c++17"
# endif
+# ifdef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should not be defined before c++2a"
+# endif
+
# if !defined(_LIBCPP_VERSION)
# ifndef __cpp_lib_parallel_algorithm
# error "__cpp_lib_parallel_algorithm should be defined in c++17"
@@ -72,6 +85,13 @@
# error "__cpp_lib_gcd_lcm should have the value 201606L in c++2a"
# endif
+# ifndef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should be defined in c++2a"
+# endif
+# if __cpp_lib_interpolate != 201902L
+# error "__cpp_lib_interpolate should have the value 201902L in c++2a"
+# endif
+
# if !defined(_LIBCPP_VERSION)
# ifndef __cpp_lib_parallel_algorithm
# error "__cpp_lib_parallel_algorithm should be defined in c++2a"
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
index 7735a13db30..0ed0a512286 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
@@ -50,6 +50,7 @@
__cpp_lib_incomplete_container_elements 201505L [C++17]
__cpp_lib_integer_sequence 201304L [C++14]
__cpp_lib_integral_constant_callable 201304L [C++14]
+ __cpp_lib_interpolate 201902L [C++2a]
__cpp_lib_invoke 201411L [C++17]
__cpp_lib_is_aggregate 201703L [C++17]
__cpp_lib_is_constant_evaluated 201811L [C++2a]
@@ -248,6 +249,10 @@
# error "__cpp_lib_integral_constant_callable should not be defined before c++14"
# endif
+# ifdef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should not be defined before c++2a"
+# endif
+
# ifdef __cpp_lib_invoke
# error "__cpp_lib_invoke should not be defined before c++17"
# endif
@@ -596,6 +601,10 @@
# error "__cpp_lib_integral_constant_callable should have the value 201304L in c++14"
# endif
+# ifdef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should not be defined before c++2a"
+# endif
+
# ifdef __cpp_lib_invoke
# error "__cpp_lib_invoke should not be defined before c++17"
# endif
@@ -1082,6 +1091,10 @@
# error "__cpp_lib_integral_constant_callable should have the value 201304L in c++17"
# endif
+# ifdef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should not be defined before c++2a"
+# endif
+
# ifndef __cpp_lib_invoke
# error "__cpp_lib_invoke should be defined in c++17"
# endif
@@ -1778,6 +1791,13 @@
# error "__cpp_lib_integral_constant_callable should have the value 201304L in c++2a"
# endif
+# ifndef __cpp_lib_interpolate
+# error "__cpp_lib_interpolate should be defined in c++2a"
+# endif
+# if __cpp_lib_interpolate != 201902L
+# error "__cpp_lib_interpolate should have the value 201902L in c++2a"
+# endif
+
# ifndef __cpp_lib_invoke
# error "__cpp_lib_invoke should be defined in c++2a"
# endif
OpenPOWER on IntegriCloud