diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-01-22 18:20:15 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-29 04:04:12 -0500 |
commit | 18e106a8dfdae50c3078558382209f53794a8c97 (patch) | |
tree | 6f9e10dbfc50a977bbb82ecf31a75e1a12aa8d1c /testsuite | |
parent | 6fc920847f65e9b9f347bde42b2f9ec624468cfd (diff) | |
download | haskell-18e106a8dfdae50c3078558382209f53794a8c97.tar.gz |
Add missing .hi-boot dependencies with ghc -M (#14482)
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/driver/T14482/A.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/driver/T14482/B.hs | 3 | ||||
-rw-r--r-- | testsuite/tests/driver/T14482/B.hs-boot | 3 | ||||
-rw-r--r-- | testsuite/tests/driver/T14482/C.hs | 10 | ||||
-rw-r--r-- | testsuite/tests/driver/T14482/Makefile | 8 | ||||
-rw-r--r-- | testsuite/tests/driver/T14482/T14482.stdout | 14 | ||||
-rw-r--r-- | testsuite/tests/driver/T14482/all.T | 1 |
7 files changed, 44 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T14482/A.hs b/testsuite/tests/driver/T14482/A.hs new file mode 100644 index 0000000000..fc453a5094 --- /dev/null +++ b/testsuite/tests/driver/T14482/A.hs @@ -0,0 +1,5 @@ +module A where + +import {-# SOURCE #-} B + +data A = A B diff --git a/testsuite/tests/driver/T14482/B.hs b/testsuite/tests/driver/T14482/B.hs new file mode 100644 index 0000000000..64e74c695a --- /dev/null +++ b/testsuite/tests/driver/T14482/B.hs @@ -0,0 +1,3 @@ +module B where + +data B = B diff --git a/testsuite/tests/driver/T14482/B.hs-boot b/testsuite/tests/driver/T14482/B.hs-boot new file mode 100644 index 0000000000..66fadef083 --- /dev/null +++ b/testsuite/tests/driver/T14482/B.hs-boot @@ -0,0 +1,3 @@ +module B where + +data B diff --git a/testsuite/tests/driver/T14482/C.hs b/testsuite/tests/driver/T14482/C.hs new file mode 100644 index 0000000000..5cb3a6aea6 --- /dev/null +++ b/testsuite/tests/driver/T14482/C.hs @@ -0,0 +1,10 @@ +module Main where + +import A +import B + +data C = C A +data D = D B + +main :: IO () +main = putStrLn "" diff --git a/testsuite/tests/driver/T14482/Makefile b/testsuite/tests/driver/T14482/Makefile new file mode 100644 index 0000000000..e8b1fd84cc --- /dev/null +++ b/testsuite/tests/driver/T14482/Makefile @@ -0,0 +1,8 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +T14482: + rm -f *.o *.hi *.o-boot *.hi-boot C result + '$(TEST_HC)' -M C.hs -dep-suffix "p_" -dep-suffix "q_" -dep-makefile result + cat result diff --git a/testsuite/tests/driver/T14482/T14482.stdout b/testsuite/tests/driver/T14482/T14482.stdout new file mode 100644 index 0000000000..a67407ae37 --- /dev/null +++ b/testsuite/tests/driver/T14482/T14482.stdout @@ -0,0 +1,14 @@ +# DO NOT DELETE: Beginning of Haskell dependencies +B.q_o-boot B.p_o-boot : B.hs-boot +B.q_o : B.q_hi-boot +B.p_o : B.p_hi-boot +B.q_o B.p_o : B.hs +A.q_o A.p_o : A.hs +A.q_o : B.q_hi-boot +A.p_o : B.p_hi-boot +C.q_o C.p_o : C.hs +C.q_o : B.q_hi +C.p_o : B.p_hi +C.q_o : A.q_hi +C.p_o : A.p_hi +# DO NOT DELETE: End of Haskell dependencies diff --git a/testsuite/tests/driver/T14482/all.T b/testsuite/tests/driver/T14482/all.T new file mode 100644 index 0000000000..0337fa8abd --- /dev/null +++ b/testsuite/tests/driver/T14482/all.T @@ -0,0 +1 @@ +test('T14482', [extra_files(['A.hs', 'B.hs', 'B.hs-boot', 'C.hs'])], makefile_test, []) |