Commit f872dca8 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Decouple mod158 from mod157 so it works in CLEANUP mode

parent e5bb47a9
......@@ -12,3 +12,13 @@ mod146::
@$(TEST_HC) -c Mod145_A.hs
@$(TEST_HC) mod146.hs
rm -f Mod157_*.o
rm -f Mod157_*.hi
rm -f mod158.o mod158.hi mod158
$(TEST_HC) -c Mod157_A.hs
$(TEST_HC) -c Mod157_B.hs
$(TEST_HC) -c Mod157_C.hs
$(TEST_HC) -c Mod157_D.hs
$(TEST_HC) mod158.hs -o mod158
......@@ -206,7 +206,9 @@ test('mod156', normal, compile, [''])
test('mod157', normal, multimod_compile, ['mod157', '-v0'])
clean(['Mod157_A.hi', 'Mod157_A.o', 'Mod157_B.hi', 'Mod157_B.o',
'Mod157_C.hi', 'Mod157_C.o', 'Mod157_D.hi', 'Mod157_D.o'])
test('mod158', normal, compile_fail, [''])
test('mod158', compose(normal, exit_code(2)), run_command, ['$MAKE -s --no-print-directory mod158'])
clean(['Mod157_A.hi', 'Mod157_A.o', 'Mod157_B.hi', 'Mod157_B.o',
'Mod157_C.hi', 'Mod157_C.o', 'Mod157_D.hi', 'Mod157_D.o'])
test('mod159', normal, multimod_compile, ['mod159', '-v0'])
clean(['Mod159_A.hi', 'Mod159_A.o', 'Mod159_B.hi', 'Mod159_B.o',
'Mod159_C.hi', 'Mod159_C.o', 'Mod159_D.hi', 'Mod159_D.o'])
mod158.hs:12:4: Not in scope: data constructor `C'
make[1]: *** [mod158] Error 1
Supports Markdown
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