diff options
Diffstat (limited to 'testsuite/tests/driver/Makefile')
-rw-r--r-- | testsuite/tests/driver/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile index b097ab6c96..9f7716a4fe 100644 --- a/testsuite/tests/driver/Makefile +++ b/testsuite/tests/driver/Makefile @@ -706,3 +706,23 @@ T17481: touch Main.hs echo "Compiling and running Main.hs:" "$(TEST_HC)" $(TEST_HC_OPTS) Main.hs && ./Main + +T14923: + echo "{-# LANGUAGE UndecidableInstances #-}" > Foo.hs + echo "module Foo where" >> Foo.hs + + cat Foo.hs + + "$(TEST_HC)" $(TEST_HC_OPTS) -c Foo.hs; + + sed -i 's/^{-\#/--&/' Foo.hs # comment out the pragma + + # Check sed actually worked + cat Foo.hs + + # This should recompile + "$(TEST_HC)" $(TEST_HC_OPTS) -c Foo.hs; + # This should not + "$(TEST_HC)" $(TEST_HC_OPTS) -c Foo.hs; + # And this should not + "$(TEST_HC)" $(TEST_HC_OPTS) -c Foo.hs; |