Commit 27b0f0ba authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Add a test for #1133

parent 0edc78a0
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
.PHONY: T1133
T1133:
$(TEST_HC) $(TEST_HC_OPTS) -c T1133.hs-boot
$(TEST_HC) $(TEST_HC_OPTS) -c T1133.hs
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module T1133 where
import {-# SOURCE #-} T1133
newtype X = X Int deriving Enum
......@@ -31,3 +31,7 @@ test('drv-functor1', normal, compile, [''])
test('drv-functor2', normal, compile, [''])
test('drv-foldable-traversable1', normal, compile, [''])
test('T6031', extra_clean(['T6031a.o', 'T6031a.hi']), multimod_compile, ['T6031', '-v0'])
test('T1133',
extra_clean(['T1133.o-boot', 'T1133.hi-boot']),
run_command,
['$MAKE --no-print-directory -s T1133'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment