[Git][ghc/ghc][master] Add tests for #15617.

Marge Bot gitlab at gitlab.haskell.org
Tue Sep 1 02:59:55 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
f6d70a8f by Roland Senn at 2020-08-31T22:59:50-04:00
Add tests for #15617.

Avoid a similar regression in the future.

- - - - -


3 changed files:

- testsuite/tests/ghc-e/should_run/Makefile
- + testsuite/tests/ghc-e/should_run/T15617a.stdout
- testsuite/tests/ghc-e/should_run/all.T


Changes:

=====================================
testsuite/tests/ghc-e/should_run/Makefile
=====================================
@@ -45,3 +45,9 @@ T9905b:
 # Ensure that ghc -e does not output extra messages about GHCi configuration files
 T11478:
 	'$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -ghci-script T11478.script -e 3
+
+T15617a:
+	'$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -fobject-code -O2 -e "let a = show 5 in a"
+
+T15617b:
+	'$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -fobject-code -O2 -e "a = show 5"


=====================================
testsuite/tests/ghc-e/should_run/T15617a.stdout
=====================================
@@ -0,0 +1 @@
+"5"


=====================================
testsuite/tests/ghc-e/should_run/all.T
=====================================
@@ -16,3 +16,5 @@ test('T9086', req_interp, makefile_test, ['T9086'])
 test('T9905', req_interp, makefile_test, ['T9905'])
 test('T9905b', req_interp, makefile_test, ['T9905b'])
 test('T11478', req_interp, makefile_test, ['T11478'])
+test('T15617a', req_interp, makefile_test, ['T15617a'])
+test('T15617b', req_interp, makefile_test, ['T15617b'])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f6d70a8ff6a6cd628738fec902fc984936105264

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f6d70a8ff6a6cd628738fec902fc984936105264
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200831/1495d32c/attachment-0001.html>


More information about the ghc-commits mailing list