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
95837c0f
Commit
95837c0f
authored
Jul 10, 2019
by
Tobias Dammers
🦈
Committed by
Marge Bot
Aug 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test cases for
#16615
parent
ca71d551
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
0 deletions
+43
-0
testsuite/tests/deSugar/should_compile/T16615.hs
testsuite/tests/deSugar/should_compile/T16615.hs
+8
-0
testsuite/tests/deSugar/should_compile/T16615.stderr
testsuite/tests/deSugar/should_compile/T16615.stderr
+34
-0
testsuite/tests/deSugar/should_compile/T16615.stdout
testsuite/tests/deSugar/should_compile/T16615.stdout
+0
-0
testsuite/tests/deSugar/should_compile/all.T
testsuite/tests/deSugar/should_compile/all.T
+1
-0
No files found.
testsuite/tests/deSugar/should_compile/T16615.hs
0 → 100644
View file @
95837c0f
module
T16615
where
f
::
Int
->
Bool
f
i
=
if
i
==
0
then
True
else
g
(
pred
i
)
g
::
Int
->
Bool
g
i
=
if
i
==
0
then
False
else
f
(
pred
i
)
testsuite/tests/deSugar/should_compile/T16615.stderr
0 → 100644
View file @
95837c0f
==================== Desugar (after optimization) ====================
Result size of Desugar (after optimization)
= {terms: 36, types: 13, coercions: 0, joins: 0/0}
-- RHS size: {terms: 5, types: 0, coercions: 0, joins: 0/0}
T16615.$trModule :: GHC.Types.Module
[LclIdX]
T16615.$trModule
= GHC.Types.Module
(GHC.Types.TrNameS "main"#) (GHC.Types.TrNameS "T16615"#)
Rec {
-- RHS size: {terms: 14, types: 4, coercions: 0, joins: 0/0}
g :: Int -> Bool
[LclIdX]
g = \ (i_a26O :: Int) ->
case == @ Int GHC.Classes.$fEqInt i_a26O (GHC.Types.I# 0#) of {
False -> f (pred @ Int GHC.Enum.$fEnumInt i_a26O);
True -> GHC.Types.False
}
-- RHS size: {terms: 14, types: 4, coercions: 0, joins: 0/0}
f [Occ=LoopBreaker] :: Int -> Bool
[LclIdX]
f = \ (i_aWp :: Int) ->
case == @ Int GHC.Classes.$fEqInt i_aWp (GHC.Types.I# 0#) of {
False -> g (pred @ Int GHC.Enum.$fEnumInt i_aWp);
True -> GHC.Types.True
}
end Rec }
testsuite/tests/deSugar/should_compile/T16615.stdout
0 → 100644
View file @
95837c0f
testsuite/tests/deSugar/should_compile/all.T
View file @
95837c0f
...
...
@@ -107,3 +107,4 @@ test('T14773a', normal, compile, ['-Wincomplete-patterns'])
test
('
T14773b
',
normal
,
compile
,
['
-Wincomplete-patterns
'])
test
('
T14815
',
[]
,
makefile_test
,
['
T14815
'])
test
('
T13208
',
[]
,
makefile_test
,
['
T13208
'])
test
('
T16615
',
normal
,
compile
,
['
-ddump-ds
'])
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