diff options
Diffstat (limited to 'testsuite/tests/generics/GenShouldFail0.hs')
-rw-r--r-- | testsuite/tests/generics/GenShouldFail0.hs | 11 |
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) |