Skip to content

Commit 588ce34

Browse files
authored
[libc++][z/OS] Fixup two linear_congruential_engine tests (#92261)
1 parent 2bc9af9 commit 588ce34

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ int main(int, char**)
8383
test<unsigned int>();
8484
test_ext<unsigned int>();
8585
test<unsigned long>();
86+
// This isn't implemented on platforms without __int128
87+
#ifndef _LIBCPP_HAS_NO_INT128
8688
test_ext<unsigned long>();
89+
#endif
8790
test<unsigned long long>();
8891
// This isn't implemented on platforms without __int128
8992
#ifndef _LIBCPP_HAS_NO_INT128

libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ int main(int, char**)
8282
test<unsigned int>();
8383
test_ext<unsigned int>();
8484
test<unsigned long>();
85+
// This isn't implemented on platforms without __int128
86+
#ifndef _LIBCPP_HAS_NO_INT128
8587
test_ext<unsigned long>();
88+
#endif
8689
test<unsigned long long>();
8790
// This isn't implemented on platforms without __int128
8891
#ifndef _LIBCPP_HAS_NO_INT128

0 commit comments

Comments
 (0)