summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs b/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs
new file mode 100644
index 0000000000..1f343ab1d7
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/InlinePatSyn_InlineMatcher.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE PatternSynonyms #-}
+
+module InlinePatSyn_InlineMatcher where
+
+-- Pattern with "INLINE" pragma, both builder and matcher should be inlined
+pattern InlinePattern a = [[[[a]]]]
+{-# INLINE InlinePattern #-}
+
+testInMatcher (InlinePattern x) = 1
+testInMatcher _ = 2