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
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
Alexander Kaznacheev
GHC
Commits
9938a40e
Commit
9938a40e
authored
10 years ago
by
Ben Gamari
Committed by
Ben Gamari
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add testcase for #10602
parent
73105e2f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/tests/simplCore/should_compile/T10602.hs
+34
-0
34 additions, 0 deletions
testsuite/tests/simplCore/should_compile/T10602.hs
testsuite/tests/simplCore/should_compile/all.T
+1
-0
1 addition, 0 deletions
testsuite/tests/simplCore/should_compile/all.T
with
35 additions
and
0 deletions
testsuite/tests/simplCore/should_compile/T10602.hs
0 → 100644
+
34
−
0
View file @
9938a40e
import
Control.Monad
import
Data.Binary
import
Data.List
newtype
A
a
=
A
[
a
]
instance
Binary
a
=>
Binary
(
A
a
)
where
put
(
A
xs
)
=
case
splitAt
254
xs
of
(
_
,
[]
)
->
mapM_
put
xs
(
a
,
b
)
->
put
(
A
b
)
get
=
do
xs
<-
replicateM
254
get
A
ys
<-
get
return
$
A
$
xs
++
ys
main
::
IO
()
main
=
undefined
{-
This intermittently failed with although I was never able to reliably reproduce,
$ ./inplace/bin/ghc-stage2 -O2 Test.hs -fforce-recomp
[1 of 1] Compiling Main ( Test.hs, Test.o )
ghc-stage2: panic! (the 'impossible' happened)
(GHC version 7.10.1.20150708 for x86_64-unknown-linux):
Template variable unbound in rewrite rule
sg_s5zh
[sc_s5zf, sc_s5zg, sg_s5zh, sg_s5zi]
[sc_s5zf, sc_s5zg, sg_s5zh, sg_s5zi]
[: @ a_a3fv sc_s5zf sc_s5zg]
[: @ a_a3fv sc_s5zb sc_s5zc]
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
-}
This diff is collapsed.
Click to expand it.
testsuite/tests/simplCore/should_compile/all.T
+
1
−
0
View file @
9938a40e
...
...
@@ -210,3 +210,4 @@ test('T9400', only_ways(['optasm']), compile, ['-O0 -ddump-simpl -dsuppress-uniq
test
('
T9583
',
only_ways
(['
optasm
']),
compile
,
[''])
test
('
T9565
',
only_ways
(['
optasm
']),
compile
,
[''])
test
('
T10176
',
only_ways
(['
optasm
']),
compile
,
[''])
test
('
T10602
',
only_ways
(['
optasm
']),
compile
,
['
-O2
'])
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