summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/typecheck/should_compile/T18118.hs5
-rw-r--r--testsuite/tests/typecheck/should_compile/T18118A.hs5
-rw-r--r--testsuite/tests/typecheck/should_compile/all.T1
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T18118.hs b/testsuite/tests/typecheck/should_compile/T18118.hs
new file mode 100644
index 0000000000..10a702d416
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T18118.hs
@@ -0,0 +1,5 @@
+module T18118 (myfun) where
+
+import T18118A
+
+{-# SPECIALISE myfun :: Double #-}
diff --git a/testsuite/tests/typecheck/should_compile/T18118A.hs b/testsuite/tests/typecheck/should_compile/T18118A.hs
new file mode 100644
index 0000000000..7a0b70def4
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T18118A.hs
@@ -0,0 +1,5 @@
+module T18118A where
+
+myfun :: a
+myfun = undefined
+
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 51977768c7..0ef2d9ef34 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -717,5 +717,6 @@ test('T17775-viewpats-a', normal, compile, [''])
test('T17775-viewpats-b', normal, compile_fail, [''])
test('T17775-viewpats-c', normal, compile_fail, [''])
test('T17775-viewpats-d', normal, compile_fail, [''])
+test('T18118', normal, multimod_compile, ['T18118', '-v0'])
test('T18412', normal, compile, [''])
test('T18470', normal, compile, [''])