summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceViewPat/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_spliceViewPat/Main.hs')
-rw-r--r--testsuite/tests/th/TH_spliceViewPat/Main.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceViewPat/Main.hs b/testsuite/tests/th/TH_spliceViewPat/Main.hs
new file mode 100644
index 0000000000..675ae99bf9
--- /dev/null
+++ b/testsuite/tests/th/TH_spliceViewPat/Main.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE QuasiQuotes, ViewPatterns #-}
+
+module Main where
+
+import A
+
+main = do
+ case 1 of
+ [foo|x|] -> print x
+ case 1 of
+ [bar|<!anything~|] -> print fixed_var