diff options
Diffstat (limited to 'testsuite/tests/llvm/should_compile/T5681.hs')
-rw-r--r-- | testsuite/tests/llvm/should_compile/T5681.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/llvm/should_compile/T5681.hs b/testsuite/tests/llvm/should_compile/T5681.hs new file mode 100644 index 0000000000..8a94fb44ce --- /dev/null +++ b/testsuite/tests/llvm/should_compile/T5681.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE MagicHash, UnboxedTuples #-} +-- Test case for Trac #5681 +module Main where + +import GHC.Prim + +work :: Int -> Int +work n = work (n-1) + +main :: IO () +main = case spark# (work 2) realWorld# of + (# _, _ #) -> case par# (work 1) of + _ -> return () + |