Repository : ssh://darcs.haskell.org//srv/darcs/testsuite On branch : master
http://hackage.haskell.org/trac/ghc/changeset/99da2671f51375578435cd8c346b255efa93b532 >--------------------------------------------------------------- commit 99da2671f51375578435cd8c346b255efa93b532 Author: Simon Marlow <[email protected]> Date: Thu Feb 16 12:17:35 2012 +0000 Test changing the -main-is function name, not just the module >--------------------------------------------------------------- tests/driver/437/437.stdout | 1 + tests/driver/437/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tests/driver/437/437.stdout b/tests/driver/437/437.stdout index 99bfbaf..5c40e57 100644 --- a/tests/driver/437/437.stdout +++ b/tests/driver/437/437.stdout @@ -1,2 +1,3 @@ "Test2.doit" "Test2.main" +"Test2.doit" diff --git a/tests/driver/437/Makefile b/tests/driver/437/Makefile index a83f1ad..42f7dd4 100644 --- a/tests/driver/437/Makefile +++ b/tests/driver/437/Makefile @@ -20,4 +20,8 @@ clean: '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 --make -main-is Test2.main Test2.hs ./Test ./Test2 + sleep 1 + # Test that changing the main function name forces recomp of Test2 + '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) -v0 --make -main-is Test2.doit Test2.hs + ./Test2 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
