[Git][ghc/ghc][master] Add regression test for #10504

Marge Bot gitlab at gitlab.haskell.org
Sat Nov 21 06:14:51 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
ddbeeb3c by Ryan Scott at 2020-11-21T01:14:44-05:00
Add regression test for #10504

This issue was fixed at some point between GHC 8.0 and 8.2. Let's add a
regression test to ensure that it stays fixed.

Fixes #10504.

- - - - -


4 changed files:

- + testsuite/tests/typecheck/should_compile/T10504.hs
- + testsuite/tests/typecheck/should_compile/T10504.stderr
- + testsuite/tests/typecheck/should_compile/T10504a.hs
- testsuite/tests/typecheck/should_compile/all.T


Changes:

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


=====================================
testsuite/tests/typecheck/should_compile/T10504.stderr
=====================================
@@ -0,0 +1,3 @@
+
+T10504.hs:5:1: warning:
+    SPECIALISE pragma for non-overloaded function ‘myfun’


=====================================
testsuite/tests/typecheck/should_compile/T10504a.hs
=====================================
@@ -0,0 +1,6 @@
+module T10504a where
+
+{-# INLINABLE myfun #-}
+
+myfun :: a
+myfun = undefined


=====================================
testsuite/tests/typecheck/should_compile/all.T
=====================================
@@ -468,6 +468,7 @@ test('T10494', normal, compile, [''])
 test('T10493', normal, compile, [''])
 test('T10428', normal, compile, [''])
 test('RepArrow', normal, compile, [''])
+test('T10504', normal, multimod_compile, ['T10504', '-O -v0'])
 test('T10562', normal, compile, [''])
 test('T10564', normal, compile, [''])
 test('Vta1', normal, compile, [''])



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ddbeeb3c7dc7a2781801cc0e6539d2b4b0e97a20
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/20201121/7d59a244/attachment-0001.html>


More information about the ghc-commits mailing list