|
@@ -268,6 +268,16 @@ void test_value_categories() {
|
|
|
assert(dl(static_cast<int&&>(1), static_cast<const int&&>(2)));
|
|
|
}
|
|
|
|
|
|
+#if TEST_STD_VER > 17
|
|
|
+constexpr bool test_constexpr() {
|
|
|
+ std::less<> cmp{};
|
|
|
+ __debug_less<std::less<> > dcmp(cmp);
|
|
|
+ assert(dcmp(1, 2));
|
|
|
+ assert(!dcmp(1, 1));
|
|
|
+ return true;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
int main(int, char**) {
|
|
|
test_passing();
|
|
|
test_failing();
|
|
@@ -275,5 +285,8 @@ int main(int, char**) {
|
|
|
test_non_const_arg_cmp();
|
|
|
test_value_iterator();
|
|
|
test_value_categories();
|
|
|
+#if TEST_STD_VER > 17
|
|
|
+ static_assert(test_constexpr(), "");
|
|
|
+#endif
|
|
|
return 0;
|
|
|
}
|