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
986ffd7f
Commit
986ffd7f
authored
Aug 24, 2001
by
simonmar
Browse files
[project @ 2001-08-24 15:56:54 by simonmar]
Add tests for the warning problems reported by Marcin earlier this week.
parent
ae578d6f
Changes
5
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/deSugar/should_compile/all.T
View file @
986ffd7f
...
@@ -61,3 +61,5 @@ test "ds048" { vtc("") }
...
@@ -61,3 +61,5 @@ test "ds048" { vtc("") }
test
"
ds049
"
{
vtc
("
-fvia-C -package lang
")
}
test
"
ds049
"
{
vtc
("
-fvia-C -package lang
")
}
test
"
ds050
"
{
vtc
("
-fglasgow-exts
")
}
test
"
ds050
"
{
vtc
("
-fglasgow-exts
")
}
test
"
ds051
"
{
vtc
("")
}
test
"
ds051
"
{
vtc
("")
}
test
"
ds052
"
{
$expect
=
"
fail
"
vtc
("")
}
test
"
ds053
"
{
$expect
=
"
fail
"
vtc
("")
}
testsuite/tests/ghc-regress/deSugar/should_compile/ds052.hs
0 → 100644
View file @
986ffd7f
{-# OPTIONS -fwarn-incomplete-patterns #-}
module
ShouldCompile
where
-- should *not* produce a warning about non-exhaustive patterns
lazyZip
::
[
a
]
->
[
b
]
->
[(
a
,
b
)]
lazyZip
[]
_
=
[]
lazyZip
(
x
:
xs
)
~
(
y
:
ys
)
=
(
x
,
y
)
:
lazyZip
xs
ys
testsuite/tests/ghc-regress/deSugar/should_compile/ds052.stderr
0 → 100644
View file @
986ffd7f
testsuite/tests/ghc-regress/deSugar/should_compile/ds053.hs
0 → 100644
View file @
986ffd7f
{-# OPTIONS -fwarn-unused-binds #-}
module
ShouldCompile
()
where
-- should warn about unused f, even though f is used in itself
f
=
f
testsuite/tests/ghc-regress/deSugar/should_compile/ds053.stderr
0 → 100644
View file @
986ffd7f
should produce a warning!
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