[commit: ghc] master: Test #7643 in typecheck/should_compile/T7643. (63d2ada)
git at git.haskell.org
git at git.haskell.org
Mon Nov 24 20:25:55 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/63d2adaef999258d874a760591e9c9ec3d75aeaf/ghc
>---------------------------------------------------------------
commit 63d2adaef999258d874a760591e9c9ec3d75aeaf
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Mon Nov 24 15:13:53 2014 -0500
Test #7643 in typecheck/should_compile/T7643.
>---------------------------------------------------------------
63d2adaef999258d874a760591e9c9ec3d75aeaf
testsuite/tests/typecheck/should_compile/T7643.hs | 11 +++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 12 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T7643.hs b/testsuite/tests/typecheck/should_compile/T7643.hs
new file mode 100644
index 0000000..77071d5
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T7643.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE MagicHash, TypeFamilies #-}
+
+module T7643 where
+
+import GHC.Exts
+
+type family T
+type instance T = RealWorld
+
+foo :: () -> State# T
+foo _ = unsafeCoerce# realWorld#
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index b16ff43..291d118 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -431,3 +431,4 @@ test('T9151', normal, compile, [''])
test('T9497a', normal, compile, ['-fdefer-typed-holes'])
test('T9497b', normal, compile, ['-fdefer-typed-holes -fno-warn-typed-holes'])
test('T9497c', normal, compile, ['-fdefer-type-errors -fno-warn-typed-holes'])
+test('T7643', normal, compile, [''])
More information about the ghc-commits
mailing list