[commit: ghc] master: testsuite: Fix T4442 on i386 (ca7653a)

git at git.haskell.org git at git.haskell.org
Thu Jun 14 14:05:29 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ca7653a97e660e95e2a52713cb0a9417c1c239ae/ghc

>---------------------------------------------------------------

commit ca7653a97e660e95e2a52713cb0a9417c1c239ae
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Thu Jun 14 09:13:11 2018 -0400

    testsuite: Fix T4442 on i386
    
    Test Plan: Validate on i386
    
    Reviewers: tdammers
    
    Reviewed By: tdammers
    
    Subscribers: rwbarton, thomie, carter
    
    GHC Trac Issues: #15184
    
    Differential Revision: https://phabricator.haskell.org/D4838


>---------------------------------------------------------------

ca7653a97e660e95e2a52713cb0a9417c1c239ae
 testsuite/tests/primops/should_run/T4442.hs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testsuite/tests/primops/should_run/T4442.hs b/testsuite/tests/primops/should_run/T4442.hs
index 0d09f62..40d7879 100644
--- a/testsuite/tests/primops/should_run/T4442.hs
+++ b/testsuite/tests/primops/should_run/T4442.hs
@@ -8,6 +8,9 @@ import GHC.Stable(
   StablePtr(..), castStablePtrToPtr, castPtrToStablePtr, newStablePtr)
 import GHC.Exts
 import Data.Char(ord)
+#if WORD_SIZE_IN_BITS < 64
+import GHC.Int (Int64(..))
+#endif
 
 assertEqual :: (Show a, Eq a) => a -> a -> IO ()
 assertEqual a b



More information about the ghc-commits mailing list