Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
a22d846c
Commit
a22d846c
authored
Jul 04, 2007
by
Simon Marlow
Browse files
add test for
#1131
parent
cb8ee078
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/array/should_run/all.T
View file @
a22d846c
...
...
@@ -21,3 +21,4 @@ test('arr014', skip_if_fast, compile_and_run, [''])
test
('
arr015
',
skip_if_fast
,
compile_and_run
,
[''])
test
('
arr016
',
normal
,
compile_and_run
,
['
-fglasgow-exts
'])
test
('
arr017
',
skip_if_fast
,
compile_and_run
,
[''])
test
('
arr018
',
skip_if_fast
,
compile_and_run
,
[''])
testsuite/tests/ghc-regress/array/should_run/arr018.hs
0 → 100644
View file @
a22d846c
-- test for #1131
import
Control.Monad.ST
import
Data.Array.ST
import
Data.Array
import
System.Mem
tickle
::
Int
tickle
=
runST
(
do
{
x
<-
newArray_
(
0
,
100
)
;
(
readArray
::
STUArray
s
Int
Int
->
Int
->
ST
s
Int
)
x
3
})
main
::
IO
()
main
=
do
print
$
length
(
replicate
100000
'a'
)
performGC
print
tickle
testsuite/tests/ghc-regress/array/should_run/arr018.stdout
0 → 100644
View file @
a22d846c
100000
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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