diff options
Diffstat (limited to 'testsuite/tests/driver/recomp006/Makefile')
-rw-r--r-- | testsuite/tests/driver/recomp006/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/driver/recomp006/Makefile b/testsuite/tests/driver/recomp006/Makefile new file mode 100644 index 0000000000..a0f55d636d --- /dev/null +++ b/testsuite/tests/driver/recomp006/Makefile @@ -0,0 +1,16 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +OBJSUFFIX = .o + +# Test that changing the fixity of a type synonym operator forces recompilation +# (see #3166). +recomp006: + $(RM) A.hi A$(OBJSUFFIX) + cp B1.hs B.hs + '$(TEST_HC)' $(TEST_HC_OPTS) --make A.hs 1>out 2>err + sleep 1 + cp B2.hs B.hs + # This should fail + if '$(TEST_HC)' $(TEST_HC_OPTS) --make A.hs; then false; fi |