diff options
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']) |