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
Andreas Schwab
GHC
Commits
8fac4b93
Commit
8fac4b93
authored
Dec 04, 2020
by
Ben Gamari
🐢
Committed by
Marge Bot
Dec 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: Add a test for #18923
parent
4a437bc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
testsuite/tests/perf/compiler/T18923.hs
testsuite/tests/perf/compiler/T18923.hs
+16
-0
testsuite/tests/perf/compiler/all.T
testsuite/tests/perf/compiler/all.T
+4
-0
No files found.
testsuite/tests/perf/compiler/T18923.hs
0 → 100644
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
)
testsuite/tests/perf/compiler/all.T
View file @
8fac4b93
...
...
@@ -434,3 +434,7 @@ test ('T18223',
],
compile
,
['
-v0 -O
'])
test
('
T18923
',
[
collect_compiler_stats
('
bytes allocated
',
2
)
],
compile
,
['
-v0 -O
'])
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