[Git][ghc/ghc][wip/T18118] testsuite: Add test for #18118

Ben Gamari gitlab at gitlab.haskell.org
Mon Aug 10 14:25:09 UTC 2020



Ben Gamari pushed to branch wip/T18118 at Glasgow Haskell Compiler / GHC


Commits:
2cdb72a5 by Ben Gamari at 2020-08-10T10:25:01-04:00
testsuite: Add test for #18118

- - - - -


3 changed files:

- + testsuite/tests/typecheck/should_compile/T18118.hs
- + testsuite/tests/typecheck/should_compile/T18118A.hs
- testsuite/tests/typecheck/should_compile/all.T


Changes:

=====================================
testsuite/tests/typecheck/should_compile/T18118.hs
=====================================
@@ -0,0 +1,5 @@
+module T18118 (myfun) where
+
+import T18118A
+
+{-# SPECIALISE myfun :: Double #-}


=====================================
testsuite/tests/typecheck/should_compile/T18118A.hs
=====================================
@@ -0,0 +1,5 @@
+module T18118A where
+
+myfun :: a
+myfun = undefined
+


=====================================
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, [''])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2cdb72a569f6049a390626bca0dd6e362045ed65

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2cdb72a569f6049a390626bca0dd6e362045ed65
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200810/bc515628/attachment-0001.html>


More information about the ghc-commits mailing list