diff options
Diffstat (limited to 'testsuite/tests/rts/outofmem2.hs')
-rw-r--r-- | testsuite/tests/rts/outofmem2.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/rts/outofmem2.hs b/testsuite/tests/rts/outofmem2.hs new file mode 100644 index 0000000000..b206d7147e --- /dev/null +++ b/testsuite/tests/rts/outofmem2.hs @@ -0,0 +1,10 @@ +-- Test for bug #1791 +import Control.Monad.ST +import Data.Array.ST +import Data.Array.MArray +import Data.Array.Base(unsafeNewArray_) +main = print (runST (do make_empty_table >> return ())) + +make_empty_table:: ST s (STArray s (Int, Int) (Maybe ep)) +make_empty_table = + unsafeNewArray_ ((1, 1), (16384, 16384)) |