summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T7681.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/T7681.hs')
-rw-r--r--testsuite/tests/th/T7681.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/th/T7681.hs b/testsuite/tests/th/T7681.hs
new file mode 100644
index 0000000000..c7f43e7798
--- /dev/null
+++ b/testsuite/tests/th/T7681.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE EmptyCase, TemplateHaskell, LambdaCase #-}
+
+module T7681 where
+
+data Void
+
+foo :: Void -> a
+foo x = $( [| case x of {} |] )
+
+bar :: Void -> a
+bar = $( [| \case {} |] )
+