Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
89facad2
Commit
89facad2
authored
Aug 23, 2016
by
Ömer Sinan Ağacan
Browse files
Add T12520 as a test
#12520 was already fixed in HEAD. Adding a test to make sure it stays fixed.
parent
acdbd16f
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghci/scripts/T12520.hs
0 → 100644
View file @
89facad2
{-# LANGUAGE MagicHash, UnboxedTuples #-}
module
Bug
(
box
,
wrap
,
proxy
)
where
import
GHC.Prim
box
::
(
#
Proxy
#
a
,
b
#
)
->
b
box
(
#
x
,
y
#
)
=
y
wrap
::
b
->
Proxy
#
a
->
(
#
Proxy
#
a
,
b
#
)
wrap
x
=
\
i
#
->
(
#
i
#
,
x
#
)
proxy
::
()
->
Proxy
#
a
proxy
()
=
proxy
#
testsuite/tests/ghci/scripts/T12520.script
0 → 100644
View file @
89facad2
:load T12520
box (wrap "foo" (proxy ()))
testsuite/tests/ghci/scripts/T12520.stdout
0 → 100644
View file @
89facad2
"foo"
testsuite/tests/ghci/scripts/all.T
View file @
89facad2
...
...
@@ -258,3 +258,4 @@ test('T11376', normal, ghci_script, ['T11376.script'])
test
('
T12007
',
normal
,
ghci_script
,
['
T12007.script
'])
test
('
T11975
',
normal
,
ghci_script
,
['
T11975.script
'])
test
('
T10963
',
normal
,
ghci_script
,
['
T10963.script
'])
test
('
T12520
',
normal
,
ghci_script
,
['
T12520.script
'])
Write
Preview
Supports
Markdown
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