diff options
Diffstat (limited to 'testsuite/tests/rts/stack001.hs')
-rw-r--r-- | testsuite/tests/rts/stack001.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/rts/stack001.hs b/testsuite/tests/rts/stack001.hs new file mode 100644 index 0000000000..4676e046ac --- /dev/null +++ b/testsuite/tests/rts/stack001.hs @@ -0,0 +1,9 @@ +module Main where + +import Control.Concurrent +import Control.Exception + +main = do + -- stack will grow as we evaluate the expression, and then shrink again + evaluate $ foldr (+) 0 [1..200000] + threadDelay 10 -- allow stack to shrink back to its smallest size |