summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_compile/T4870.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar/should_compile/T4870.hs')
-rw-r--r--testsuite/tests/deSugar/should_compile/T4870.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_compile/T4870.hs b/testsuite/tests/deSugar/should_compile/T4870.hs
new file mode 100644
index 0000000000..fefcdb194b
--- /dev/null
+++ b/testsuite/tests/deSugar/should_compile/T4870.hs
@@ -0,0 +1,10 @@
+module T4870 where
+
+import T4870a
+
+data D = D
+
+instance C D where
+ c x = x
+
+{-# SPECIALIZE f :: D #-}