diff options
Diffstat (limited to 'testsuite/tests/cmm/should_run/T22871.hs')
-rw-r--r-- | testsuite/tests/cmm/should_run/T22871.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/cmm/should_run/T22871.hs b/testsuite/tests/cmm/should_run/T22871.hs new file mode 100644 index 0000000000..a990e8a793 --- /dev/null +++ b/testsuite/tests/cmm/should_run/T22871.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE GHCForeignImportPrim #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE UnliftedFFITypes #-} + +import Data.Foldable +import GHC.Exts +import GHC.Int + +foreign import prim "foo" foo :: Int64# -> Int64# + +main :: IO () +main = for_ [0, 42, 114514] $ \(I64# x#) -> print $ I64# (foo x#) |