diff options
Diffstat (limited to 'testsuite/tests/driver/1959/Makefile')
-rw-r--r-- | testsuite/tests/driver/1959/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/tests/driver/1959/Makefile b/testsuite/tests/driver/1959/Makefile new file mode 100644 index 0000000000..844a442afa --- /dev/null +++ b/testsuite/tests/driver/1959/Makefile @@ -0,0 +1,25 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +# Test recompilation bug #1959, which failed in 6.8.1 (and earlier) + +compile :: + '$(TEST_HC)' $(TEST_HC_OPTS) -c -O E.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -c -O D.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -c -O -funfolding-use-threshold=0 C.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -c -O B.hs + '$(TEST_HC)' $(TEST_HC_OPTS) E.o D.o C.o B.o -o prog + +clean :: + rm -f *.o *.hi E.hs + +dotest :: + $(MAKE) clean + cp E1.hs E.hs + $(MAKE) compile + ./prog + sleep 1 + cp E2.hs E.hs + $(MAKE) compile + ./prog |