summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/T7669.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/T7669.hs')
-rw-r--r--testsuite/tests/deSugar/should_compile/T7669.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/T7669.hs b/testsuite/tests/deSugar/should_compile/T7669.hs
new file mode 100644
index 0000000000..b665b6543f
--- /dev/null
+++ b/testsuite/tests/deSugar/should_compile/T7669.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE EmptyCase #-}
+{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
+
+module T7669 where
+
+data Void
+
+foo :: Void -> ()
+foo x = case x of {}
+-- Should not get incomplete-pattern warning
+