summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/T3391.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/T3391.hs')
-rw-r--r--tests/examples/ghc86/T3391.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/examples/ghc86/T3391.hs b/tests/examples/ghc86/T3391.hs
new file mode 100644
index 0000000..1370ece
--- /dev/null
+++ b/tests/examples/ghc86/T3391.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE TemplateHaskell #-}
+{-# OPTIONS_GHC -v0 #-}
+
+-- We should only generate one set of generic to/from functions
+-- for T, despite the multiple chunks caused by the TH splices
+-- See Trac #3391
+
+module T3391 where
+
+data T = MkT
+
+$(return [])
+
+$(return [])
+