[libcxx-commits] [libcxx] [libc++][z/OS] Fixup linear_congruential_engine test (PR #92261)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 15 06:48:40 PDT 2024


https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/92261

None

>From 1f09bb2a3c777a103e9dde84e705e0d456adf31d Mon Sep 17 00:00:00 2001
From: Zbigniew Sarbinowski <zibi at ca.ibm.com>
Date: Wed, 15 May 2024 13:53:20 +0000
Subject: [PATCH] Fixup linear_congruential_engine test

---
 .../std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
index 73829071bd958..63a1a8adf4e35 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
@@ -83,7 +83,10 @@ int main(int, char**)
     test<unsigned int>();
     test_ext<unsigned int>();
     test<unsigned long>();
+    // This isn't implemented on platforms without __int128
+#ifndef _LIBCPP_HAS_NO_INT128
     test_ext<unsigned long>();
+#endif
     test<unsigned long long>();
     // This isn't implemented on platforms without __int128
 #ifndef _LIBCPP_HAS_NO_INT128



More information about the libcxx-commits mailing list