summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-01-08 14:08:25 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2013-01-08 14:08:25 +0000
commit5c899f9dd9b54b20ce3935bec2b0be90d6df9f19 (patch)
tree8a06d8eb849c5405e83b45a2843381fe4ba0229a /testsuite/tests/rename
parentcfcd6b837304ba6f6421fbc6fd133b5110497364 (diff)
downloadhaskell-5c899f9dd9b54b20ce3935bec2b0be90d6df9f19.tar.gz
Test Trac #7454
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r--testsuite/tests/rename/should_fail/T7454.hs7
-rw-r--r--testsuite/tests/rename/should_fail/T7454.stderr3
-rw-r--r--testsuite/tests/rename/should_fail/all.T1
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, [''])