[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 10:20:17 PDT 2024
https://github.com/zibi2 updated https://github.com/llvm/llvm-project/pull/92261
>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 1/2] 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
>From 07e590445f2e445c349048b9d97746ed071dd6a6 Mon Sep 17 00:00:00 2001
From: Zbigniew Sarbinowski <zibi at ca.ibm.com>
Date: Wed, 15 May 2024 17:25:12 +0000
Subject: [PATCH 2/2] Fix another rand.eng.lcong test
---
.../std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
index 8387a1763714f..c45f45d0f20a3 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
@@ -82,7 +82,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