summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorEric Seidel <gridaphobe@gmail.com>2015-12-07 12:42:38 +0100
committerBen Gamari <ben@smart-cactus.org>2015-12-07 13:09:27 +0100
commit1bd40c860eb0e8da55b8eff536766a6c802347cc (patch)
tree24d489949acc6e8e947c692b838715bde52b7028 /testsuite/tests
parent51a5e68db887adb3565ff2f077267e2b513be562 (diff)
downloadhaskell-1bd40c860eb0e8da55b8eff536766a6c802347cc.tar.gz
Move checking for missing signatures to RnNames.reportUnusedNames
Checking for missing signatures before renaming the export list is prone to errors, so we now perform the check in `reportUnusedNames` at which point everything has been renamed. Test Plan: validate, new test case is T10908 Reviewers: goldfire, simonpj, austin, bgamari Subscribers: thomie Projects: #ghc Differential Revision: https://phabricator.haskell.org/D1561 GHC Trac Issues: #10908
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/warnings/should_compile/T10908.hs10
-rw-r--r--testsuite/tests/warnings/should_compile/all.T1
2 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/warnings/should_compile/T10908.hs b/testsuite/tests/warnings/should_compile/T10908.hs
new file mode 100644
index 0000000000..a9af541df9
--- /dev/null
+++ b/testsuite/tests/warnings/should_compile/T10908.hs
@@ -0,0 +1,10 @@
+{-# OPTIONS_GHC -fwarn-missing-exported-sigs #-}
+
+module Bug (Data.List.intercalate, x) where
+
+import qualified Data.List
+
+intercalate = True
+
+x :: Bool
+x = intercalate
diff --git a/testsuite/tests/warnings/should_compile/all.T b/testsuite/tests/warnings/should_compile/all.T
index c2b8dd2274..f60468e6ca 100644
--- a/testsuite/tests/warnings/should_compile/all.T
+++ b/testsuite/tests/warnings/should_compile/all.T
@@ -4,6 +4,7 @@ test('T9178', extra_clean(['T9178.o', 'T9178DataType.o',
'T9178.hi', 'T9178DataType.hi']),
multimod_compile, ['T9178', '-Wall'])
test('T9230', normal, compile_without_flag('-fno-warn-tabs'), [''])
+test('T10908', normal, compile, [''])
test('T11077', normal, compile, ['-fwarn-missing-exported-sigs'])
test('T11128', normal, compile, [''])