summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>2018-10-22 19:15:35 +0200
committerklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>2018-10-22 19:15:41 +0200
commitfce07c99fa6528e95892604edb73fb975d6a01fc (patch)
tree048da5a8c9a6e6198b05872d14c5729db361beab /testsuite
parent879db5595208fb665ff1a0a2b12b9921d3efae0e (diff)
downloadhaskell-fce07c99fa6528e95892604edb73fb975d6a01fc.tar.gz
Update hsc2hs submodule to work around bug in response file handling.
Summary: This works around #15758 by bumping hsc2hs. The new version includes support for response files independent of the boot compiler. Test Plan: ci, building formerly broken packages Reviewers: bgamari, RyanGlScott, ckoparkar Reviewed By: ckoparkar Subscribers: rwbarton, carter GHC Trac Issues: #15758 Differential Revision: https://phabricator.haskell.org/D5250
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/hsc2hs/Makefile5
-rw-r--r--testsuite/tests/hsc2hs/T15758.hsc6
-rw-r--r--testsuite/tests/hsc2hs/T15758.response1
-rw-r--r--testsuite/tests/hsc2hs/all.T3
4 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/hsc2hs/Makefile b/testsuite/tests/hsc2hs/Makefile
index fa668e74ac..b0751f1e50 100644
--- a/testsuite/tests/hsc2hs/Makefile
+++ b/testsuite/tests/hsc2hs/Makefile
@@ -49,3 +49,8 @@ ifeq "$(WINDOWS)" "YES"
else
grep '{-# LINE 1 \"T12504/path/to/$@\.hsc\" #-}' T12504/path/to/$@.hs
endif
+
+.PHONY: T15758
+T15758:
+ '$(HSC2HS)' $@.hsc @T15758.response
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c $@.a.hs
diff --git a/testsuite/tests/hsc2hs/T15758.hsc b/testsuite/tests/hsc2hs/T15758.hsc
new file mode 100644
index 0000000000..4a47501859
--- /dev/null
+++ b/testsuite/tests/hsc2hs/T15758.hsc
@@ -0,0 +1,6 @@
+
+module Main (main) where
+
+main :: IO ()
+main = print #size int
+
diff --git a/testsuite/tests/hsc2hs/T15758.response b/testsuite/tests/hsc2hs/T15758.response
new file mode 100644
index 0000000000..ea0d6b18d0
--- /dev/null
+++ b/testsuite/tests/hsc2hs/T15758.response
@@ -0,0 +1 @@
+-o T15758.a.hs
diff --git a/testsuite/tests/hsc2hs/all.T b/testsuite/tests/hsc2hs/all.T
index 03dd69a8d4..f237d9ac59 100644
--- a/testsuite/tests/hsc2hs/all.T
+++ b/testsuite/tests/hsc2hs/all.T
@@ -16,3 +16,6 @@ test('T10272', [], run_command, ['$MAKE -s --no-print-directory T10272'])
test('T12504', [extra_files(['T12504']), ignore_stdout], run_command,
['$MAKE -s --no-print-directory T12504'])
+
+# Make sure response files are read and used.
+test('T15758', [], run_command, ['$MAKE -s --no-print-directory T15758'])