summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-04-07 13:12:23 -0400
committerBen Gamari <ben@smart-cactus.org>2019-04-07 13:12:23 -0400
commit3c3fc474d6df3e84271373f69d672a26e2f2426a (patch)
tree0295595d0f40f5451e911b2427e6ba1f72b81bfb
parente23f982c4fbed9248bf0e68dd73b0e524c78b8d4 (diff)
downloadhaskell-wip/T16551.tar.gz
testsuite: Add test for #16551wip/T16551
-rw-r--r--testsuite/tests/warnings/should_compile/T16551A.hs2
-rw-r--r--testsuite/tests/warnings/should_compile/T16551B.hs2
-rw-r--r--testsuite/tests/warnings/should_compile/T16551B.hs-boot2
-rw-r--r--testsuite/tests/warnings/should_compile/all.T2
4 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/warnings/should_compile/T16551A.hs b/testsuite/tests/warnings/should_compile/T16551A.hs
new file mode 100644
index 0000000000..28e6de1b26
--- /dev/null
+++ b/testsuite/tests/warnings/should_compile/T16551A.hs
@@ -0,0 +1,2 @@
+module T16551A where
+import {-# SOURCE #-} T16551B
diff --git a/testsuite/tests/warnings/should_compile/T16551B.hs b/testsuite/tests/warnings/should_compile/T16551B.hs
new file mode 100644
index 0000000000..93b229bf79
--- /dev/null
+++ b/testsuite/tests/warnings/should_compile/T16551B.hs
@@ -0,0 +1,2 @@
+module T16551B where
+import A
diff --git a/testsuite/tests/warnings/should_compile/T16551B.hs-boot b/testsuite/tests/warnings/should_compile/T16551B.hs-boot
new file mode 100644
index 0000000000..9ac29ce40a
--- /dev/null
+++ b/testsuite/tests/warnings/should_compile/T16551B.hs-boot
@@ -0,0 +1,2 @@
+module B where
+
diff --git a/testsuite/tests/warnings/should_compile/all.T b/testsuite/tests/warnings/should_compile/all.T
index 36e6b1beeb..253a3a3bba 100644
--- a/testsuite/tests/warnings/should_compile/all.T
+++ b/testsuite/tests/warnings/should_compile/all.T
@@ -26,3 +26,5 @@ test('MissingMod', normal, multimod_compile, ['MissingMod', '-Wmissing-home-modu
test('StarBinder', normal, compile, [''])
test('Overflow', normal, compile, [''])
+
+test('T16551', normal, compile, ['Werror=missing-home-modules T16551A.hs T16551B.hs'])