Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
5521d34d
Commit
5521d34d
authored
Oct 24, 2007
by
Simon Marlow
Browse files
add test for
#1791
parent
aaab2ac2
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rts/all.T
View file @
5521d34d
...
...
@@ -22,3 +22,6 @@ test('divbyzero',
compile_and_run
,
[''])
test
('
outofmem
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
outofmem2
',
compose
(
exit_code
(
251
),
extra_run_opts
('
+RTS -M5m -RTS
')),
compile_and_run
,
[''])
testsuite/tests/ghc-regress/rts/outofmem2.hs
0 → 100644
View file @
5521d34d
-- 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
))
testsuite/tests/ghc-regress/rts/outofmem2.stderr
0 → 100644
View file @
5521d34d
Heap exhausted;
Current maximum heap size is 4997120 bytes (4 Mb);
use `+RTS -M<size>' to increase it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment