Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sheaf
GHC
Commits
8fac4b93
Commit
8fac4b93
authored
4 years ago
by
Ben Gamari
Committed by
Marge Bot
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testsuite: Add a test for #18923
parent
4a437bc1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/perf/compiler/T18923.hs
+16
-0
16 additions, 0 deletions
testsuite/tests/perf/compiler/T18923.hs
testsuite/tests/perf/compiler/all.T
+4
-0
4 additions, 0 deletions
testsuite/tests/perf/compiler/all.T
with
20 additions
and
0 deletions
testsuite/tests/perf/compiler/T18923.hs
0 → 100644
+
16
−
0
View file @
8fac4b93
module
T18923
(
mergeRec
,
Rec
)
where
mayMerge
::
Maybe
b
->
Maybe
b
->
Maybe
b
mayMerge
Nothing
y
=
y
mayMerge
x
Nothing
=
x
mayMerge
(
Just
x
)
(
Just
y
)
=
Just
y
data
Rec
=
Rec
{
v0
,
v1
,
v2
,
v3
,
v4
,
v5
,
v6
,
v7
::
!
(
Maybe
Bool
)
}
mergeRec
::
Rec
->
Rec
->
Rec
mergeRec
(
Rec
a0
a1
a2
a3
a4
a5
a6
a7
)
(
Rec
b0
b1
b2
b3
b4
b5
b6
b7
)
=
Rec
(
mayMerge
a0
b0
)
(
mayMerge
a1
b1
)
(
mayMerge
a2
b2
)
(
mayMerge
a3
b3
)
(
mayMerge
a4
b4
)
(
mayMerge
a5
b5
)
(
mayMerge
a6
b6
)
(
mayMerge
a7
b7
)
This diff is collapsed.
Click to expand it.
testsuite/tests/perf/compiler/all.T
+
4
−
0
View file @
8fac4b93
...
...
@@ -434,3 +434,7 @@ test ('T18223',
],
compile
,
['
-v0 -O
'])
test
('
T18923
',
[
collect_compiler_stats
('
bytes allocated
',
2
)
],
compile
,
['
-v0 -O
'])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment