diff options
author | Sean Gillespie <sean@mistersg.net> | 2017-06-12 17:04:05 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-06-12 17:04:06 -0400 |
commit | af9612bf862daaa99384eefa3059054053ecbee8 (patch) | |
tree | 73c84293f84ce6b4802728e68ddb2ce983a82bd3 /testsuite/tests/driver | |
parent | 2088d0be17dccfa91a4759bdbb20faae77c8dbed (diff) | |
download | haskell-af9612bf862daaa99384eefa3059054053ecbee8.tar.gz |
Make -w less aggressive (Trac #12056)
Previously -w combined with -Wunrecognised-warning-flags would not
report unrecognized flags.
Reviewers: austin, bgamari, dfeuer
Reviewed By: bgamari
Subscribers: dfeuer, rwbarton, thomie
GHC Trac Issues: #12056
Differential Revision: https://phabricator.haskell.org/D3581
Diffstat (limited to 'testsuite/tests/driver')
-rw-r--r-- | testsuite/tests/driver/T12056a.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T12056a.stderr | 0 | ||||
-rw-r--r-- | testsuite/tests/driver/T12056b.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T12056b.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T12056c.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T12056c.stderr | 5 | ||||
-rw-r--r-- | testsuite/tests/driver/all.T | 5 |
7 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T12056a.hs b/testsuite/tests/driver/T12056a.hs new file mode 100644 index 0000000000..c81fb82437 --- /dev/null +++ b/testsuite/tests/driver/T12056a.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "hello world" diff --git a/testsuite/tests/driver/T12056a.stderr b/testsuite/tests/driver/T12056a.stderr new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuite/tests/driver/T12056a.stderr diff --git a/testsuite/tests/driver/T12056b.hs b/testsuite/tests/driver/T12056b.hs new file mode 100644 index 0000000000..c81fb82437 --- /dev/null +++ b/testsuite/tests/driver/T12056b.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "hello world" diff --git a/testsuite/tests/driver/T12056b.stderr b/testsuite/tests/driver/T12056b.stderr new file mode 100644 index 0000000000..e1e870a828 --- /dev/null +++ b/testsuite/tests/driver/T12056b.stderr @@ -0,0 +1,2 @@ + +on the commandline: warning: unrecognised warning flag: -Wbar diff --git a/testsuite/tests/driver/T12056c.hs b/testsuite/tests/driver/T12056c.hs new file mode 100644 index 0000000000..c81fb82437 --- /dev/null +++ b/testsuite/tests/driver/T12056c.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "hello world" diff --git a/testsuite/tests/driver/T12056c.stderr b/testsuite/tests/driver/T12056c.stderr new file mode 100644 index 0000000000..0f96367dc2 --- /dev/null +++ b/testsuite/tests/driver/T12056c.stderr @@ -0,0 +1,5 @@ + +on the commandline: warning: + -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS + +on the commandline: warning: unrecognised warning flag: -Wbar diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index ddea9ccda8..19dcc0a950 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -252,6 +252,11 @@ test('T11763', normal, compile_and_run, ['-fno-version-macros']) test('T10320', [], run_command, ['$MAKE -s --no-print-directory T10320']) +test('T12056a', normal, compile, ['-w -Wfoo -Wbar']) +test('T12056b', normal, compile, ['-w -XOverlappingInstances -Wfoo -Wunrecognised-warning-flags -Wbar']) +test('T12056c', normal, compile, + ['-w -Wdeprecated-flags -XOverlappingInstances -Wfoo -Wunrecognised-warning-flags -Wbar']) + test('T12135', [expect_broken(12135)], run_command, ['$MAKE -s --no-print-directory T12135']) |