diff options
author | Paolo Capriotti <p.capriotti@gmail.com> | 2012-08-23 13:48:53 +0100 |
---|---|---|
committer | Paolo Capriotti <p.capriotti@gmail.com> | 2012-08-24 10:06:31 +0100 |
commit | 7434b7966d3273dca850364821f421815f954355 (patch) | |
tree | 1b871387fe59410fbef4a385c9a5fc09d5e4dc9e | |
parent | a284cd9aa587fd1aedfedd2767259408968e2746 (diff) | |
download | haskell-7434b7966d3273dca850364821f421815f954355.tar.gz |
Add test for T7167.
-rw-r--r-- | testsuite/tests/rename/should_compile/T7167.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T7167.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/all.T | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T7167.hs b/testsuite/tests/rename/should_compile/T7167.hs new file mode 100644 index 0000000000..78e6938ef5 --- /dev/null +++ b/testsuite/tests/rename/should_compile/T7167.hs @@ -0,0 +1,5 @@ +{-# OPTIONS_GHC -fwarn-dodgy-imports #-} + +module T7167 where + +import Data.List hiding (foo) diff --git a/testsuite/tests/rename/should_compile/T7167.stderr b/testsuite/tests/rename/should_compile/T7167.stderr new file mode 100644 index 0000000000..0607529f10 --- /dev/null +++ b/testsuite/tests/rename/should_compile/T7167.stderr @@ -0,0 +1,2 @@ + +T7167.hs:5:1: Warning: Module `Data.List' does not export `foo' diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T index d0d2487621..b3acb905b1 100644 --- a/testsuite/tests/rename/should_compile/all.T +++ b/testsuite/tests/rename/should_compile/all.T @@ -200,3 +200,4 @@ test('dodgy', [ extra_clean(['DodgyA.hi', 'DodgyA.o']) ], multimod_compile, ['dodgy', '-v0']) +test('T7167', normal, compile, ['']) |