summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/RepPolyUnboxedPatterns.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rep-poly/RepPolyUnboxedPatterns.hs')
-rw-r--r--testsuite/tests/rep-poly/RepPolyUnboxedPatterns.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rep-poly/RepPolyUnboxedPatterns.hs b/testsuite/tests/rep-poly/RepPolyUnboxedPatterns.hs
new file mode 100644
index 0000000000..601c65d0e8
--- /dev/null
+++ b/testsuite/tests/rep-poly/RepPolyUnboxedPatterns.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE UnboxedTuples, MagicHash #-}
+
+module RepPolyUnboxedPatterns where
+
+import GHC.Exts
+
+foo :: forall rep1 (a :: TYPE rep1) rep2 (b :: TYPE rep2). (# a, b #) -> ()
+foo (# bndr_a, bndr_b #) = ()
+
+bar :: forall rep1 (a :: TYPE rep1) rep2 (b :: TYPE rep2). (# a | b #) -> ()
+bar (# bndr_a | #) = ()
+bar (# | bndr_b #) = ()