summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Tennie <sven.tennie@gmail.com>2023-05-05 19:53:23 +0000
committerSven Tennie <sven.tennie@gmail.com>2023-05-05 19:59:53 +0000
commitfce1eec46191b09e7b538e1388dbabe96622dfe4 (patch)
treea2ff0bfdf9255ade2c9241ea6846dfac6a6eae8a
parent694957792b91f9dcc71818d986f21adfad9661e2 (diff)
downloadhaskell-fce1eec46191b09e7b538e1388dbabe96622dfe4.tar.gz
Fix test
-rw-r--r--libraries/ghc-heap/tests/stack_big_ret.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/libraries/ghc-heap/tests/stack_big_ret.hs b/libraries/ghc-heap/tests/stack_big_ret.hs
index c4a66d52e7..845c560abc 100644
--- a/libraries/ghc-heap/tests/stack_big_ret.hs
+++ b/libraries/ghc-heap/tests/stack_big_ret.hs
@@ -49,11 +49,12 @@ main = do
let xs = zip [1 ..] cs
mapM_ (uncurry checkArg) xs
-checkArg :: Word -> Closure -> IO ()
-checkArg w bp =
- case bp of
- UnknownTypeWordSizedPrimitive _ -> error "Unexpected payload type from bitmap."
- c -> do
+checkArg :: Word -> StackField -> IO ()
+checkArg w sf =
+ case sf of
+ StackWord _ -> error "Unexpected payload type from bitmap."
+ StackBox b -> do
+ c <- getBoxedClosureData b
assertEqual CONSTR_0_1 $ (tipe . info) c
assertEqual "I#" (name c)
assertEqual "ghc-prim" (pkg c)