summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_run/unboxed-wrapper.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/patsyn/should_run/unboxed-wrapper.hs')
-rw-r--r--testsuite/tests/patsyn/should_run/unboxed-wrapper.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_run/unboxed-wrapper.hs b/testsuite/tests/patsyn/should_run/unboxed-wrapper.hs
new file mode 100644
index 0000000000..367c8ccebd
--- /dev/null
+++ b/testsuite/tests/patsyn/should_run/unboxed-wrapper.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE PatternSynonyms, MagicHash #-}
+module Main where
+
+import GHC.Base
+
+pattern P1 = 42#
+
+main = do
+ print $ I# P1