summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/driver/T12056a.hs2
-rw-r--r--testsuite/tests/driver/T12056a.stderr0
-rw-r--r--testsuite/tests/driver/T12056b.hs2
-rw-r--r--testsuite/tests/driver/T12056b.stderr2
-rw-r--r--testsuite/tests/driver/T12056c.hs2
-rw-r--r--testsuite/tests/driver/T12056c.stderr5
-rw-r--r--testsuite/tests/driver/all.T5
-rw-r--r--testsuite/tests/safeHaskell/check/pkg01/Makefile2
8 files changed, 19 insertions, 1 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'])
diff --git a/testsuite/tests/safeHaskell/check/pkg01/Makefile b/testsuite/tests/safeHaskell/check/pkg01/Makefile
index 5d4fd73266..1c9d8eb596 100644
--- a/testsuite/tests/safeHaskell/check/pkg01/Makefile
+++ b/testsuite/tests/safeHaskell/check/pkg01/Makefile
@@ -25,7 +25,7 @@ mkPackageDatabase.%:
# we get a warning if dynlibs are enabled by default that:
# Warning: -rtsopts and -with-rtsopts have no effect with -shared.
# so we filter the flag out
- pdb.$*/setup configure -v0 --dist pdb.$*/dist --prefix='$(HERE)/pdb.$*/install' --with-compiler='$(TEST_HC)' --ghc-options='$(filter-out -rtsopts,$(TEST_HC_OPTS)) -fpackage-trust -trust base -trust bytestring' --with-hc-pkg='$(GHC_PKG)' --package-db='pdb.$*/local.db' $(VANILLA) $(PROF) $(DYN)
+ pdb.$*/setup configure -v0 --dist pdb.$*/dist --prefix='$(HERE)/pdb.$*/install' --with-compiler='$(TEST_HC)' --ghc-options='$(filter-out -rtsopts,$(TEST_HC_OPTS)) -trust base -trust bytestring' --with-hc-pkg='$(GHC_PKG)' --package-db='pdb.$*/local.db' $(VANILLA) $(PROF) $(DYN)
pdb.$*/setup build -v0 --dist pdb.$*/dist
pdb.$*/setup copy -v0 --dist pdb.$*/dist
pdb.$*/setup register -v0 --dist pdb.$*/dist --inplace