summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T3834.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_fail/T3834.hs')
-rw-r--r--testsuite/tests/deriving/should_fail/T3834.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/T3834.hs b/testsuite/tests/deriving/should_fail/T3834.hs
new file mode 100644
index 0000000000..614170198e
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/T3834.hs
@@ -0,0 +1,9 @@
+
+{-# LANGUAGE StandaloneDeriving #-}
+
+class C a
+instance C Int
+
+newtype T = T Int
+deriving instance C T
+