summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/T20423.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rep-poly/T20423.hs')
-rw-r--r--testsuite/tests/rep-poly/T20423.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/T20423.hs b/testsuite/tests/rep-poly/T20423.hs
new file mode 100644
index 0000000000..da1a1602a3
--- /dev/null
+++ b/testsuite/tests/rep-poly/T20423.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE StandaloneKindSignatures, MagicHash, ExplicitForAll, PolyKinds,
+ DataKinds, UnliftedDatatypes, PatternSynonyms #-}
+
+module T20423 where
+
+import GHC.Exts
+
+type LPInt :: forall (l :: Levity) -> TYPE (BoxedRep l)
+data LPInt l = MkI Int#
+
+pattern MkIPS :: Int# -> LPInt lev
+pattern MkIPS n = MkI n