[Git][ghc/ghc][wip/T18291] testsuite: Add test for #18291

Ben Gamari gitlab at gitlab.haskell.org
Wed Jun 3 05:13:46 UTC 2020



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


Commits:
c2af541a by Ben Gamari at 2020-06-03T01:13:32-04:00
testsuite: Add test for #18291

- - - - -


2 changed files:

- + testsuite/tests/codeGen/should_compile/T18291.hs
- testsuite/tests/codeGen/should_compile/all.T


Changes:

=====================================
testsuite/tests/codeGen/should_compile/T18291.hs
=====================================
@@ -0,0 +1,7 @@
+{-# LANGUAGE MagicHash #-}
+module T18291 where
+
+import GHC.Magic
+
+hi :: Int
+hi = runRW# $ \_ -> 42


=====================================
testsuite/tests/codeGen/should_compile/all.T
=====================================
@@ -87,3 +87,4 @@ test('T14373d', [],
 
 test('T17648', normal, makefile_test, [])
 test('T17904', normal, compile, ['-O'])
+test('T18291', normal, compile, ['-O0'])



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c2af541aec919d0801fc68ab3f746c2536dd52ad
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/20200603/96c94dd6/attachment.html>


More information about the ghc-commits mailing list