summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T4114c.hs
diff options
context:
space:
mode:
authorKai Harries <kai.harries@gmail.com>2016-03-24 22:33:27 +0100
committerBen Gamari <ben@smart-cactus.org>2016-03-24 23:15:16 +0100
commit24149528a0a2d17ff9b5b087e0a8249c8c9cef98 (patch)
tree9feef1475b49a01a81e7767f81816494f5d06bbe /testsuite/tests/driver/T4114c.hs
parent173a5d8ee4d3d8b7ddd2e8b81c957d03441c4f2b (diff)
downloadhaskell-24149528a0a2d17ff9b5b087e0a8249c8c9cef98.tar.gz
Add option `no-keep-hi-files` and `no-keep-o-files` (fixes #4114)
Summary: Remove `.hi` and `.o` files if the flags `no-keep-hi-files` and `no-keep-o-files` are given. Test Plan: ./validate Reviewers: austin, thomie, bgamari Reviewed By: thomie, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2021 GHC Trac Issues: #4114
Diffstat (limited to 'testsuite/tests/driver/T4114c.hs')
-rw-r--r--testsuite/tests/driver/T4114c.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T4114c.hs b/testsuite/tests/driver/T4114c.hs
new file mode 100644
index 0000000000..f7802e13de
--- /dev/null
+++ b/testsuite/tests/driver/T4114c.hs
@@ -0,0 +1,14 @@
+-- Test the flage `force-no-intermediates` (issue #4114)
+module Main (main) where
+
+import T4114cSub
+
+keep, nokeep :: [FilePath]
+keep = ["T4114c", "T4114cSub.hi", "T4114c.hi"]
+nokeep = ["T4114cSub.o", "T4114c.o"]
+
+
+main :: IO ()
+main = do
+ mapM_ assertNoKeep nokeep
+ mapM_ assertKeep keep