diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2012-07-20 19:12:04 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2012-07-20 19:12:04 +0100 |
commit | 94187d0c0fadff9c57da3f78ffc67c6dd80d9619 (patch) | |
tree | 2c721cc6f36502c6eb0aa43f0e0f612877ebc411 /testsuite | |
parent | 59a4b58542b4447b9ab76d9224fc6f2334d31aa3 (diff) | |
parent | 2b5c6ba1711a3e22d902274b03d6014b1926d234 (diff) | |
download | haskell-94187d0c0fadff9c57da3f78ffc67c6dd80d9619.tar.gz |
Merge ../../HEAD/testsuite
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/rename/should_compile/T7085.hs | 8 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T7085.stderr | 3 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/all.T | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T7085.hs b/testsuite/tests/rename/should_compile/T7085.hs new file mode 100644 index 0000000000..4b587f4dc7 --- /dev/null +++ b/testsuite/tests/rename/should_compile/T7085.hs @@ -0,0 +1,8 @@ +{-# OPTIONS_GHC -fwarn-unused-binds #-} + +module ShouldFail where + +foo :: Int -> Int +foo n = n + 1 + where + Nothing = Just n diff --git a/testsuite/tests/rename/should_compile/T7085.stderr b/testsuite/tests/rename/should_compile/T7085.stderr new file mode 100644 index 0000000000..b642ed6a44 --- /dev/null +++ b/testsuite/tests/rename/should_compile/T7085.stderr @@ -0,0 +1,3 @@ + +T7085.hs:8:6: Warning: + This pattern-binding binds no variables: Nothing = Just n diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T index 3c821f7e2b..1963150ec9 100644 --- a/testsuite/tests/rename/should_compile/all.T +++ b/testsuite/tests/rename/should_compile/all.T @@ -192,3 +192,4 @@ test('T5867', test('T6027', normal, compile, ['']) test('T6120', normal, compile, ['']) test('T7007', normal, compile, ['']) +test('T7085', normal, compile, ['']) |