summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T3391.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T3391.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/T3391.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T3391.hs b/testsuite/tests/typecheck/should_compile/T3391.hs
new file mode 100644
index 0000000000..eb569366b5
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T3391.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TemplateHaskell, Generics #-}
+{-# 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 [])