diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2013-01-08 14:08:25 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2013-01-08 14:08:25 +0000 |
commit | 5c899f9dd9b54b20ce3935bec2b0be90d6df9f19 (patch) | |
tree | 8a06d8eb849c5405e83b45a2843381fe4ba0229a /testsuite/tests/rename | |
parent | cfcd6b837304ba6f6421fbc6fd133b5110497364 (diff) | |
download | haskell-5c899f9dd9b54b20ce3935bec2b0be90d6df9f19.tar.gz |
Test Trac #7454
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r-- | testsuite/tests/rename/should_fail/T7454.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T7454.stderr | 3 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/all.T | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_fail/T7454.hs b/testsuite/tests/rename/should_fail/T7454.hs new file mode 100644 index 0000000000..d0088abe43 --- /dev/null +++ b/testsuite/tests/rename/should_fail/T7454.hs @@ -0,0 +1,7 @@ +{-# OPTIONS_GHC -fwarn-unused-imports #-} + +module T7454 where + +import Control.Arrow( Arrow, arr ) + +foo () = arr diff --git a/testsuite/tests/rename/should_fail/T7454.stderr b/testsuite/tests/rename/should_fail/T7454.stderr new file mode 100644 index 0000000000..4f68ca4b90 --- /dev/null +++ b/testsuite/tests/rename/should_fail/T7454.stderr @@ -0,0 +1,3 @@ + +T7454.hs:5:1: Warning: + The import of `Arrow' from module `Control.Arrow' is redundant diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T index a8aea713c3..4ced172c62 100644 --- a/testsuite/tests/rename/should_fail/all.T +++ b/testsuite/tests/rename/should_fail/all.T @@ -106,3 +106,4 @@ test('T6148', normal, compile_fail, ['']) test('T7164', normal, compile_fail, ['']) test('T7338', normal, compile_fail, ['']) test('T7338a', normal, compile_fail, ['']) +test('T7454', normal, compile, ['']) |