[libcxx-commits] [libcxx] 588ce34 - [libc++][z/OS] Fixup two linear_congruential_engine tests (#92261)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 16 05:51:59 PDT 2024
Author: zibi2
Date: 2024-05-16T08:51:56-04:00
New Revision: 588ce34ba626a369a416b883342af48c69e70925
URL: https://github.com/llvm/llvm-project/commit/588ce34ba626a369a416b883342af48c69e70925
DIFF: https://github.com/llvm/llvm-project/commit/588ce34ba626a369a416b883342af48c69e70925.diff
LOG: [libc++][z/OS] Fixup two linear_congruential_engine tests (#92261)
Added:
Modified:
libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
Removed:
################################################################################
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
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