Skip to content
Snippets Groups Projects
Commit e4b4e2e0 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a test from testsuite/tests/h98

parent a2e657fb
No related branches found
No related tags found
No related merge requests found
test('T2120', normal, compile_and_run, [''])
test('largeArray', normal, compile_and_run, [''])
import Data.Array
main :: IO ()
main = print (((!1).inc.inc.inc.inc.inc.inc.inc.inc.inc.inc) a)
size :: Int
size = 60
a :: Array Int Integer
a = listArray (1,size) [1..]
inc :: Array Int Integer -> Array Int Integer
inc a = accum (+) a [(i,1) | i <- [1..size]]
11
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment