diff options
Diffstat (limited to 'testsuite/tests/driver/recomp007/b')
-rw-r--r-- | testsuite/tests/driver/recomp007/b/B.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/driver/recomp007/b/Main.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/driver/recomp007/b/b.cabal | 10 |
3 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/driver/recomp007/b/B.hs b/testsuite/tests/driver/recomp007/b/B.hs new file mode 100644 index 0000000000..742c5d3a3f --- /dev/null +++ b/testsuite/tests/driver/recomp007/b/B.hs @@ -0,0 +1,5 @@ +module B (b) where + +import A + +b = a diff --git a/testsuite/tests/driver/recomp007/b/Main.hs b/testsuite/tests/driver/recomp007/b/Main.hs new file mode 100644 index 0000000000..ca60a5902b --- /dev/null +++ b/testsuite/tests/driver/recomp007/b/Main.hs @@ -0,0 +1,5 @@ +module Main (main) where + +import B + +main = print b diff --git a/testsuite/tests/driver/recomp007/b/b.cabal b/testsuite/tests/driver/recomp007/b/b.cabal new file mode 100644 index 0000000000..988ef871a2 --- /dev/null +++ b/testsuite/tests/driver/recomp007/b/b.cabal @@ -0,0 +1,10 @@ +name: b +version: 1.0 +build-type: Simple +cabal-version: >= 1.2 +executable test { + build-depends: base, a + main-is: Main.hs + other-modules: B + ghc-options: -O0 +} |