diff options
Diffstat (limited to 'testsuite/tests/driver/T13710')
-rw-r--r-- | testsuite/tests/driver/T13710/A.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/driver/T13710/A.hs-boot | 2 | ||||
-rw-r--r-- | testsuite/tests/driver/T13710/B.hs | 3 | ||||
-rw-r--r-- | testsuite/tests/driver/T13710/Makefile | 6 | ||||
-rw-r--r-- | testsuite/tests/driver/T13710/T13710.stdout | 3 | ||||
-rw-r--r-- | testsuite/tests/driver/T13710/all.T | 4 |
6 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/driver/T13710/A.hs b/testsuite/tests/driver/T13710/A.hs new file mode 100644 index 0000000000..5181945eeb --- /dev/null +++ b/testsuite/tests/driver/T13710/A.hs @@ -0,0 +1,5 @@ +{-# LANGUAGE RecordWildCards #-} +module A where +import B +data E = MkE +p (H{..}) = () diff --git a/testsuite/tests/driver/T13710/A.hs-boot b/testsuite/tests/driver/T13710/A.hs-boot new file mode 100644 index 0000000000..94a2f5e306 --- /dev/null +++ b/testsuite/tests/driver/T13710/A.hs-boot @@ -0,0 +1,2 @@ +module A ( E ) where +data E diff --git a/testsuite/tests/driver/T13710/B.hs b/testsuite/tests/driver/T13710/B.hs new file mode 100644 index 0000000000..87c93a9f39 --- /dev/null +++ b/testsuite/tests/driver/T13710/B.hs @@ -0,0 +1,3 @@ +module B where +import {-# SOURCE #-} A +data H = H { h :: E } diff --git a/testsuite/tests/driver/T13710/Makefile b/testsuite/tests/driver/T13710/Makefile new file mode 100644 index 0000000000..d582f94af5 --- /dev/null +++ b/testsuite/tests/driver/T13710/Makefile @@ -0,0 +1,6 @@ +TOP=../../.. +include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/test.mk + +T13710: + '$(TEST_HC)' $(TEST_HC_OPTS) --make B.hs diff --git a/testsuite/tests/driver/T13710/T13710.stdout b/testsuite/tests/driver/T13710/T13710.stdout new file mode 100644 index 0000000000..2d729289db --- /dev/null +++ b/testsuite/tests/driver/T13710/T13710.stdout @@ -0,0 +1,3 @@ +[1 of 3] Compiling A[boot] ( A.hs-boot, A.o-boot ) +[2 of 3] Compiling B ( B.hs, B.o ) +[3 of 3] Compiling A ( A.hs, A.o ) diff --git a/testsuite/tests/driver/T13710/all.T b/testsuite/tests/driver/T13710/all.T new file mode 100644 index 0000000000..64daacc96b --- /dev/null +++ b/testsuite/tests/driver/T13710/all.T @@ -0,0 +1,4 @@ +test('T13710', + [extra_files(['A.hs', 'A.hs-boot', 'B.hs'])], + run_command, + ['$MAKE -s --no-print-directory T13710']) |