summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/outofmem.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rts/outofmem.hs')
-rw-r--r--testsuite/tests/rts/outofmem.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/rts/outofmem.hs b/testsuite/tests/rts/outofmem.hs
new file mode 100644
index 0000000000..9392ab1da0
--- /dev/null
+++ b/testsuite/tests/rts/outofmem.hs
@@ -0,0 +1,7 @@
+module Main where
+import Data.Array.IO
+import Control.Monad
+main = do
+ arrs <- sequence $ repeat $ (newArray_ (0,2^28) :: IO (IOUArray Int Int))
+ -- larger than 2^28 causes other problems...
+ print (length arrs)