Wasm backend testsuite failure: enum02, enum03
enum02
fails with:
--- "/tmp/tmp.LpusZhc2ok/ghctest-j2ji4_24/test spaces/libraries/base/tests/enum02.run/enum02.stdout.normalised" 2022-12-12 19:13:17.141052783 +0000
+++ "/tmp/tmp.LpusZhc2ok/ghctest-j2ji4_24/test spaces/libraries/base/tests/enum02.run/enum02.run.stdout.normalised" 2022-12-12 19:13:17.141052783 +0000
@@ -107,8 +107,8 @@
(succ (0::Int64)) = 1
(succ (minBound::Int64)) = -9223372036854775807
(succ (maxBound::Int64)) = error "Enum.succ{Int64}: tried to take `succ' of maxBound"
- pred (1::Int64) = 0
- pred (maxBound::Int64) = 9223372036854775806
+ pred (1::Int64) = 4294967296
+ pred (maxBound::Int64) = -9223372032559808514
pred (minBound::Int64) = error "Enum.pred{Int64}: tried to take `pred' of minBound"
(map (toEnum::Int->Int64) [1, fromIntegral (minBound::Int64), fromIntegral (maxBound::Int64)]) = [1,0,-1]
(toEnum (maxBound::Int))::Int64 = 2147483647
enum03
fails with:
--- "/tmp/tmp.LpusZhc2ok/ghctest-j2ji4_24/test spaces/libraries/base/tests/enum03.run/enum03.stdout.normalised" 2022-12-12 19:13:17.469053217 +0000
+++ "/tmp/tmp.LpusZhc2ok/ghctest-j2ji4_24/test spaces/libraries/base/tests/enum03.run/enum03.run.stdout.normalised" 2022-12-12 19:13:17.469053217 +0000
@@ -108,8 +108,8 @@
(succ (0::Word64)) = 1
(succ (minBound::Word64)) = 1
(succ (maxBound::Word64)) = error "Enum.succ{Word64}: tried to take `succ' of maxBound"
- pred (1::Word64) = 0
- pred (maxBound::Word64) = 18446744073709551614
+ pred (1::Word64) = 4294967296
+ pred (maxBound::Word64) = 4294967294
pred (minBound::Word64) = error "Enum.pred{Word64}: tried to take `pred' of minBound"
(map (toEnum::Int->Word64) [1, fromIntegral (minBound::Word64)::Int, maxBound::Int]) = [1,0,2147483647]
(toEnum (maxBound::Int))::Word64 = 2147483647
)