summaryrefslogtreecommitdiff
path: root/testsuite/tests/pmcheck/complete_sigs/T18960.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/pmcheck/complete_sigs/T18960.hs')
-rw-r--r--testsuite/tests/pmcheck/complete_sigs/T18960.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/complete_sigs/T18960.hs b/testsuite/tests/pmcheck/complete_sigs/T18960.hs
new file mode 100644
index 0000000000..ed441647d7
--- /dev/null
+++ b/testsuite/tests/pmcheck/complete_sigs/T18960.hs
@@ -0,0 +1,13 @@
+{-# OPTIONS_GHC -Wincomplete-patterns -fforce-recomp #-}
+{-# LANGUAGE PatternSynonyms #-}
+
+module T18960 where
+
+pattern P :: a -> a
+pattern P x = x
+{-# COMPLETE P :: () #-}
+
+foo :: ()
+foo = case () of
+ P _ -> ()
+