[libcxx-commits] [libcxx] [libcxx][test] Use long double test macro in strong_order.pass.cpp (PR #106742)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 30 07:40:51 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: David Spickett (DavidSpickett)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/106742.diff


1 Files Affected:

- (modified) libcxx/test/std/language.support/cmp/cmp.alg/strong_order.pass.cpp (+6-2) 


``````````diff
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..1503f8d9a721c8 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 for 16 byte long double
+#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 for 16 byte long double
+#endif
     static_assert(test_1_4());
 
     return 0;

``````````

</details>


https://github.com/llvm/llvm-project/pull/106742


More information about the libcxx-commits mailing list