diff options
Diffstat (limited to 'testsuite/tests/ghci/should_run/T22958a.hs')
-rw-r--r-- | testsuite/tests/ghci/should_run/T22958a.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/should_run/T22958a.hs b/testsuite/tests/ghci/should_run/T22958a.hs new file mode 100644 index 0000000000..7ec94bc4c7 --- /dev/null +++ b/testsuite/tests/ghci/should_run/T22958a.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE MagicHash, UnboxedTuples #-} +import GHC.Exts +import GHC.IO + +unit :: () +unit = () + +i :: State# RealWorld -> (# State# RealWorld, () #) +i s = case seq# unit s of (# s', a #) -> (# s', a #) + +bad :: IO () +bad = IO i + +main :: IO () +main = bad >>= print |