Commit 38dee26c authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a test for trac #2412

parent f2c9b65a
......@@ -7,3 +7,9 @@ tc173:
$(TEST_HC) -c -fglasgow-exts -XUndecidableInstances -XOverlappingInstances Tc173a.hs
$(TEST_HC) -c -fglasgow-exts -XUndecidableInstances -XOverlappingInstances Tc173b.hs
T2412:
$(RM) -f T2412.hi-boot T2412.o-boot T2412A.hi T2412A.o T2412.hi T2412.o
$(TEST_HC) -c T2412.hs-boot
$(TEST_HC) -c T2412A.hs
$(TEST_HC) -c T2412.hs
module T2412 ( Baz ) where
import T2412A ( Bar )
type Spqr = Bar
data Baz = Baz Spqr
module T2412A where
import {-# SOURCE #-} T2412 ( Baz )
type Bar = Baz
......@@ -286,3 +286,11 @@ test('syn-perf2', normal, compile, [''])
test('LoopOfTheDay1', normal, compile, [''])
test('LoopOfTheDay2', normal, compile, [''])
test('LoopOfTheDay3', normal, compile, [''])
test('T2412',
extra_clean(['T2412.hi-boot', 'T2412.o-boot',
'T2412A.hi', 'T2412A.o',
'T2412.hi', 'T2412.o']),
run_command,
['$MAKE --no-print-directory -s T2412'])
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