From 5c899f9dd9b54b20ce3935bec2b0be90d6df9f19 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Tue, 8 Jan 2013 14:08:25 +0000 Subject: Test Trac #7454 --- testsuite/tests/rename/should_fail/T7454.hs | 7 +++++++ testsuite/tests/rename/should_fail/T7454.stderr | 3 +++ testsuite/tests/rename/should_fail/all.T | 1 + 3 files changed, 11 insertions(+) create mode 100644 testsuite/tests/rename/should_fail/T7454.hs create mode 100644 testsuite/tests/rename/should_fail/T7454.stderr (limited to 'testsuite/tests/rename') 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, ['']) -- cgit v1.2.1