diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-02-27 13:50:10 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2016-02-27 16:35:45 +0100 |
commit | b9c697eefd34fcba3ab9c1f831baf7f651ad7503 (patch) | |
tree | 73dd59a223adc3f855da6613c0a99ed2e1fb6f77 /testsuite/tests/numeric | |
parent | 3ee4fc04322dacb66c70262a220dce0f52c29d4f (diff) | |
download | haskell-b9c697eefd34fcba3ab9c1f831baf7f651ad7503.tar.gz |
Print which flag controls emitted desugaring warnings
This is extends bb5afd3c274011c5ea302210b4c290ec1f83209c to cover
warnings emitted during the desugaring phase.
This implements another part of #10752
Reviewed-by: quchen, bgamari
Differential Revision: https://phabricator.haskell.org/D1954
Diffstat (limited to 'testsuite/tests/numeric')
4 files changed, 16 insertions, 10 deletions
diff --git a/testsuite/tests/numeric/should_compile/T10929.stderr b/testsuite/tests/numeric/should_compile/T10929.stderr index 8723c42a9a..15c382ca3e 100644 --- a/testsuite/tests/numeric/should_compile/T10929.stderr +++ b/testsuite/tests/numeric/should_compile/T10929.stderr @@ -1,6 +1,9 @@ -T10929.hs:4:6: warning: Enumeration is empty +T10929.hs:4:6: warning: [-Wempty-enumerations (in -Wdefault)] + Enumeration is empty -T10929.hs:22:6: warning: Enumeration is empty +T10929.hs:22:6: warning: [-Wempty-enumerations (in -Wdefault)] + Enumeration is empty -T10929.hs:28:6: warning: Enumeration is empty +T10929.hs:28:6: warning: [-Wempty-enumerations (in -Wdefault)] + Enumeration is empty diff --git a/testsuite/tests/numeric/should_compile/T7881.stderr b/testsuite/tests/numeric/should_compile/T7881.stderr index db1dbed796..9bcca4f5e9 100644 --- a/testsuite/tests/numeric/should_compile/T7881.stderr +++ b/testsuite/tests/numeric/should_compile/T7881.stderr @@ -1,6 +1,9 @@ -T7881.hs:7:6: Warning: Enumeration is empty +T7881.hs:7:6: warning: [-Wempty-enumerations (in -Wdefault)] + Enumeration is empty -T7881.hs:25:6: Warning: Enumeration is empty +T7881.hs:25:6: warning: [-Wempty-enumerations (in -Wdefault)] + Enumeration is empty -T7881.hs:31:6: Warning: Enumeration is empty +T7881.hs:31:6: warning: [-Wempty-enumerations (in -Wdefault)] + Enumeration is empty diff --git a/testsuite/tests/numeric/should_compile/T7895.stderr b/testsuite/tests/numeric/should_compile/T7895.stderr index a4438efe4c..cf25e80a25 100644 --- a/testsuite/tests/numeric/should_compile/T7895.stderr +++ b/testsuite/tests/numeric/should_compile/T7895.stderr @@ -1,6 +1,6 @@ -T7895.hs:10:6: Warning: +T7895.hs:10:6: warning: [-Woverflowed-literals (in -Wdefault)] Literal 300 is out of the Word8 range 0..255 -T7895.hs:13:6: Warning: +T7895.hs:13:6: warning: [-Woverflowed-literals (in -Wdefault)] Literal -129 is out of the Int8 range -128..127 diff --git a/testsuite/tests/numeric/should_compile/T8542.stderr b/testsuite/tests/numeric/should_compile/T8542.stderr index b86ccad361..f4143821f6 100644 --- a/testsuite/tests/numeric/should_compile/T8542.stderr +++ b/testsuite/tests/numeric/should_compile/T8542.stderr @@ -1,8 +1,8 @@ -T8542.hs:6:6: Warning: +T8542.hs:6:6: warning: [-Woverflowed-literals (in -Wdefault)] Literal 128 is out of the Int8 range -128..127 If you are trying to write a large negative literal, use NegativeLiterals -T8542.hs:9:5: Warning: +T8542.hs:9:5: warning: [-Woverflowed-literals (in -Wdefault)] Literal 128 is out of the Int8 range -128..127 If you are trying to write a large negative literal, use NegativeLiterals |