Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
03ee7cd1
Commit
03ee7cd1
authored
Dec 07, 2011
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test from #5363
parent
d5593000
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
testsuite/tests/profiling/should_run/T5363.hs
testsuite/tests/profiling/should_run/T5363.hs
+12
-0
testsuite/tests/profiling/should_run/T5363.stdout
testsuite/tests/profiling/should_run/T5363.stdout
+1
-0
testsuite/tests/profiling/should_run/all.T
testsuite/tests/profiling/should_run/all.T
+6
-0
No files found.
testsuite/tests/profiling/should_run/T5363.hs
0 → 100644
View file @
03ee7cd1
import
Data.Array.Unboxed
main
=
do
let
l1
=
[
1
..
10
]
::
[
Int
]
let
l2
=
[
map
(
i
+
)
l1
|
i
<-
[
1
..
500000
]
]
let
l3
=
map
(
\
l
->
listArray
(
1
,
length
l
)
l
)
l2
::
[
UArray
Int
Int
]
print
$
accumulate
l3
0
accumulate
[]
rv
=
rv
accumulate
(
h
:
t
)
rv
=
let
nextRv
=
(
rv
+
sum
(
elems
h
))
in
accumulate
t
$!
nextRv
testsuite/tests/profiling/should_run/T5363.stdout
0 → 100644
View file @
03ee7cd1
1250030000000
testsuite/tests/profiling/should_run/all.T
View file @
03ee7cd1
...
...
@@ -107,3 +107,9 @@ test('callstack001',
test
('
callstack002
',
[
req_profiling
,
extra_ways
(['
prof
']),
only_ways
(
prof_ways
)
],
compile_and_run
,
['
-fprof-auto-calls -fno-full-laziness -fno-state-hack
'])
# Should not stack overflow with -prof -auto-all
test
('
T5363
',
[
req_profiling
,
extra_ways
(['
prof
']),
only_ways
(
prof_ways
)
],
compile_and_run
,
[''])
Write
Preview
Markdown
is supported
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