Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Michael Sloan
GHC
Commits
d1fb5831
Commit
d1fb5831
authored
Mar 26, 2018
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testsuite: Add test for
#14965
parent
d5c4d46a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
0 deletions
+30
-0
testsuite/tests/simplCore/should_run/T14965.hs
testsuite/tests/simplCore/should_run/T14965.hs
+15
-0
testsuite/tests/simplCore/should_run/T14965.stdout
testsuite/tests/simplCore/should_run/T14965.stdout
+1
-0
testsuite/tests/simplCore/should_run/T14965_Sep.hs
testsuite/tests/simplCore/should_run/T14965_Sep.hs
+13
-0
testsuite/tests/simplCore/should_run/all.T
testsuite/tests/simplCore/should_run/all.T
+1
-0
No files found.
testsuite/tests/simplCore/should_run/T14965.hs
0 → 100644
View file @
d1fb5831
module
Main
(
main
)
where
import
T14965_Sep
main
::
IO
()
main
=
print
$
cc
bb
bb
::
Sep
bb
=
catSep
b1
b2
b1
::
Sep
b1
=
Sep
[]
[
"foo"
]
[]
b2
::
Sep
b2
=
Sep
[]
[
"bar"
]
[]
testsuite/tests/simplCore/should_run/T14965.stdout
0 → 100644
View file @
d1fb5831
True
testsuite/tests/simplCore/should_run/T14965_Sep.hs
0 → 100644
View file @
d1fb5831
module
T14965_Sep
where
data
Sep
=
Sep
{
bugVanishesWithoutThis
::
[
()
]
,
middle
::
[
String
]
,
orThis
::
[
()
]
}
catSep
::
Sep
->
Sep
->
Sep
catSep
(
Sep
a
b
c
)
(
Sep
x
y
z
)
=
Sep
(
a
++
x
)
(
b
++
y
)
(
c
++
z
)
cc
::
Sep
->
Bool
cc
boost
=
elem
"foo"
$
middle
boost
testsuite/tests/simplCore/should_run/all.T
View file @
d1fb5831
...
...
@@ -83,3 +83,4 @@ test('T14868',
[
when
((
arch
('
powerpc64
')
or
arch
('
powerpc64le
')),
expect_broken
(
11261
))],
compile_and_run
,
[''])
test
('
T14894
',
normal
,
compile_and_run
,
[''])
test
('
T14965
',
normal
,
compile_and_run
,
[''])
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