diff options
author | David Terei <davidterei@gmail.com> | 2011-11-09 23:24:22 -0800 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2011-11-09 23:24:22 -0800 |
commit | 9c2f5761bb77e9b19fa1fbd24cf8dc8d1ef58821 (patch) | |
tree | aff4d02c1c853c882d86c3f407f623cac5915c7e /testsuite/tests | |
parent | 3029bc3263b6eae2f064560e9047e01612aea36b (diff) | |
download | haskell-9c2f5761bb77e9b19fa1fbd24cf8dc8d1ef58821.tar.gz |
Add test for #437: recompilation bug with '-main-is'
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/driver/437/437.stderr | 0 | ||||
-rw-r--r-- | testsuite/tests/driver/437/437.stdout | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/437/Makefile | 19 | ||||
-rw-r--r-- | testsuite/tests/driver/437/Test.hs | 6 | ||||
-rw-r--r-- | testsuite/tests/driver/437/Test2.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/driver/437/all.T | 7 |
6 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/tests/driver/437/437.stderr b/testsuite/tests/driver/437/437.stderr new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/testsuite/tests/driver/437/437.stderr diff --git a/testsuite/tests/driver/437/437.stdout b/testsuite/tests/driver/437/437.stdout new file mode 100644 index 0000000000..99bfbaffa5 --- /dev/null +++ b/testsuite/tests/driver/437/437.stdout @@ -0,0 +1,2 @@ +"Test2.doit" +"Test2.main" diff --git a/testsuite/tests/driver/437/Makefile b/testsuite/tests/driver/437/Makefile new file mode 100644 index 0000000000..26f0f08bc9 --- /dev/null +++ b/testsuite/tests/driver/437/Makefile @@ -0,0 +1,19 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +# Recompilation tests + +clean: + rm -f *.o *.hi + rm -f Test$(exeext) + rm -f Test2$(exeext) + +# bug #437 + +437: clean + '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -main-is Test.main Test.hs + '$(TEST_HC)' $(TEST_HC_OPTS) -v0 --make -main-is Test2.main Test2.hs + ./Test + ./Test2 + diff --git a/testsuite/tests/driver/437/Test.hs b/testsuite/tests/driver/437/Test.hs new file mode 100644 index 0000000000..7c58c0524e --- /dev/null +++ b/testsuite/tests/driver/437/Test.hs @@ -0,0 +1,6 @@ +module Test where + +import Test2 hiding (main) + +main = doit + diff --git a/testsuite/tests/driver/437/Test2.hs b/testsuite/tests/driver/437/Test2.hs new file mode 100644 index 0000000000..d7732c9424 --- /dev/null +++ b/testsuite/tests/driver/437/Test2.hs @@ -0,0 +1,5 @@ +module Test2 where + +doit = print "Test2.doit" +main = print "Test2.main" + diff --git a/testsuite/tests/driver/437/all.T b/testsuite/tests/driver/437/all.T new file mode 100644 index 0000000000..34bb7f88b2 --- /dev/null +++ b/testsuite/tests/driver/437/all.T @@ -0,0 +1,7 @@ +# Test for #437, a recompilation bug with '-main-is' + +test('437', + [ clean_cmd('$MAKE -s clean') ], + run_command, + ['$MAKE -s --no-print-directory 437']) + |