[libcxx-commits] [libcxx] 5bd3ee0 - [libcxx][test] Use long double test macro in strong_order.pass.cpp (#106742)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 2 01:06:20 PDT 2024
Author: David Spickett
Date: 2024-09-02T09:06:14+01:00
New Revision: 5bd3ee0ac02880df0c4d7e89026ee8b9d8f1039e
URL: https://github.com/llvm/llvm-project/commit/5bd3ee0ac02880df0c4d7e89026ee8b9d8f1039e
DIFF: https://github.com/llvm/llvm-project/commit/5bd3ee0ac02880df0c4d7e89026ee8b9d8f1039e.diff
LOG: [libcxx][test] Use long double test macro in strong_order.pass.cpp (#106742)
Added:
Modified:
libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp
index ac6b6879f77309..e384ea289bb5bf 100644
--- a/libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp
+++ b/libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp
@@ -454,12 +454,16 @@ int main(int, char**)
test_1_2();
test_1_3<float>();
test_1_3<double>();
- // test_1_3<long double>(); // UNIMPLEMENTED
+#ifdef TEST_LONG_DOUBLE_IS_DOUBLE
+ test_1_3<long double>(); // UNIMPLEMENTED when long double is a distinct type
+#endif
test_1_4();
static_assert(test_1_3<float>());
static_assert(test_1_3<double>());
- // static_assert(test_1_3<long double>()); // UNIMPLEMENTED
+#ifdef TEST_LONG_DOUBLE_IS_DOUBLE
+ static_assert(test_1_3<long double>()); // UNIMPLEMENTED when long double is a distinct type
+#endif
static_assert(test_1_4());
return 0;
More information about the libcxx-commits
mailing list