summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/GenShouldFail0.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/generics/GenShouldFail0.hs')
-rw-r--r--testsuite/tests/generics/GenShouldFail0.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/generics/GenShouldFail0.hs b/testsuite/tests/generics/GenShouldFail0.hs
new file mode 100644
index 0000000000..cc1ef6ff42
--- /dev/null
+++ b/testsuite/tests/generics/GenShouldFail0.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE StandaloneDeriving #-}
+
+module ShouldFail0 where
+
+import GHC.Generics (Generic)
+
+data X = X
+
+deriving instance Generic X
+
+-- Should fail (no XDeriveGeneric)