Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7c941855
Commit
7c941855
authored
Oct 10, 2007
by
simonpj
Browse files
Test for Trac
#1759
parent
6129c42a
Changes
2
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/deSugar/should_compile/all.T
View file @
7c941855
...
...
@@ -65,3 +65,4 @@ test('ds058', normal, compile, ['-W'])
test
('
ds059
',
normal
,
compile
,
['
-W
'])
test
('
ds060
',
expect_broken
(
322
),
compile
,
[''])
test
('
ds061
',
expect_broken
(
851
),
compile
,
[''])
test
('
ds062
',
normal
,
compile
,
[''])
testsuite/tests/ghc-regress/deSugar/should_compile/ds062.hs
0 → 100644
View file @
7c941855
{-# OPTIONS_GHC -Wall #-}
module
ShouldCompile
where
f
::
String
->
Int
f
x
|
null
x
=
1
|
otherwise
=
2
-- Should not give a non-exhaustive-patterns error
-- See Trac #1759
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment