diff options
Diffstat (limited to 'testsuite/tests/patsyn/should_run/T9783.hs')
-rw-r--r-- | testsuite/tests/patsyn/should_run/T9783.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_run/T9783.hs b/testsuite/tests/patsyn/should_run/T9783.hs new file mode 100644 index 0000000000..daef96032b --- /dev/null +++ b/testsuite/tests/patsyn/should_run/T9783.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE PatternSynonyms, MagicHash #-} +module Main where + +import GHC.Base + +pattern P1 <- 0 +pattern P2 <- 1 + +f :: Int -> Int# +f P1 = 42# +f P2 = 44# + +main = do + print $ I# (f 0) + print $ I# (f 1) |