diff options
author | Martin Ceresa <ceresa@cifasis-conicet.gov.ar> | 2016-10-07 13:54:10 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2016-10-07 13:55:09 +0100 |
commit | f3be304abed6407b5ef148d76e4679c88018c780 (patch) | |
tree | f1e94559442e1ae0b7038a3dfd9c6f858c9e991f /testsuite/tests | |
parent | e41b9c614984b63c4660018cecde682453e083e5 (diff) | |
download | haskell-f3be304abed6407b5ef148d76e4679c88018c780.tar.gz |
Don't suggest deprecated flags in error messages
When looking up flags, we make sure to lookup the non-deprecated flags first
by ordering the list of flags.
Reviewers: bgamari, austin, mpickering
Reviewed By: mpickering
Subscribers: mpickering, thomie
Differential Revision: https://phabricator.haskell.org/D2541
GHC Trac Issues: #12574
Diffstat (limited to 'testsuite/tests')
5 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/tests/warnings/should_compile/T11077.stderr b/testsuite/tests/warnings/should_compile/T11077.stderr index ba7d4d8580..1d6804335b 100644 --- a/testsuite/tests/warnings/should_compile/T11077.stderr +++ b/testsuite/tests/warnings/should_compile/T11077.stderr @@ -1,3 +1,3 @@ -T11077.hs:3:1: warning: [-Wmissing-exported-sigs] +T11077.hs:3:1: warning: [-Wmissing-exported-signatures] Top-level binding with no type signature: foo :: a diff --git a/testsuite/tests/warnings/should_compile/T12574.hs b/testsuite/tests/warnings/should_compile/T12574.hs new file mode 100644 index 0000000000..7f54e7a934 --- /dev/null +++ b/testsuite/tests/warnings/should_compile/T12574.hs @@ -0,0 +1,3 @@ +module T12574 where + +id a = a diff --git a/testsuite/tests/warnings/should_compile/T12574.stderr b/testsuite/tests/warnings/should_compile/T12574.stderr new file mode 100644 index 0000000000..ded88331fa --- /dev/null +++ b/testsuite/tests/warnings/should_compile/T12574.stderr @@ -0,0 +1,4 @@ + +T12574.hs:3:1: warning: [-Wmissing-local-signatures] + Polymorphic local binding with no type signature: + T12574.id :: forall t. t -> t diff --git a/testsuite/tests/warnings/should_compile/T2526.stderr b/testsuite/tests/warnings/should_compile/T2526.stderr index 07cf8d835f..b433f0e71d 100644 --- a/testsuite/tests/warnings/should_compile/T2526.stderr +++ b/testsuite/tests/warnings/should_compile/T2526.stderr @@ -1,3 +1,3 @@ -T2526.hs:4:1: warning: [-Wmissing-exported-sigs] +T2526.hs:4:1: warning: [-Wmissing-exported-signatures] Top-level binding with no type signature: foo :: Integer diff --git a/testsuite/tests/warnings/should_compile/all.T b/testsuite/tests/warnings/should_compile/all.T index d2c8c1a3bd..ed128faaaa 100644 --- a/testsuite/tests/warnings/should_compile/all.T +++ b/testsuite/tests/warnings/should_compile/all.T @@ -13,6 +13,9 @@ test('T11128', normal, compile, ['']) test('T11128b', normal, compile, ['']) test('PluralS', normal, compile, ['']) +# T12574 Test that suggest current flag over deprecated +test('T12574',normal, compile, ['-fwarn-missing-local-signatures']) + test('DeprU', extra_clean([ 'DeprM.o', 'DeprU.o', |