diff options
Diffstat (limited to 'testsuite/tests/rename/should_compile/T3221.hs')
-rw-r--r-- | testsuite/tests/rename/should_compile/T3221.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T3221.hs b/testsuite/tests/rename/should_compile/T3221.hs new file mode 100644 index 0000000000..5550fd3fa7 --- /dev/null +++ b/testsuite/tests/rename/should_compile/T3221.hs @@ -0,0 +1,8 @@ +{-# OPTIONS_GHC -Werror -fwarn-unused-binds #-} + +-- Test Trac #3221: the constructors are used by the deriving +-- clause, even though they are not exported + +module T3221( Foo ) where + +data Foo = Bar | Baz deriving (Show,Read) |