[commit: ghc] master: Testsuite: add a test for #5522 (-fliberate-case -fspec-constr) (5020bc8)

git at git.haskell.org git at git.haskell.org
Wed May 25 19:27:41 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5020bc8fd2a99a557f45ea5abf8240ac995cc03d/ghc

>---------------------------------------------------------------

commit 5020bc8fd2a99a557f45ea5abf8240ac995cc03d
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Wed May 25 21:23:09 2016 +0200

    Testsuite: add a test for #5522 (-fliberate-case -fspec-constr)


>---------------------------------------------------------------

5020bc8fd2a99a557f45ea5abf8240ac995cc03d
 testsuite/tests/deSugar/should_run/all.T | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/testsuite/tests/deSugar/should_run/all.T b/testsuite/tests/deSugar/should_run/all.T
index 7bc911e..fce86c5 100644
--- a/testsuite/tests/deSugar/should_run/all.T
+++ b/testsuite/tests/deSugar/should_run/all.T
@@ -32,6 +32,12 @@ test('T3382', normal, compile_and_run, [''])
 test('mc01', normal, compile_and_run, [''])
 test('mc02', normal, compile_and_run, [''])
 test('mc03', normal, compile_and_run, [''])
+
+# #5522: "I noticed that test mc03 runs out of memory compiled with
+#         -O -fliberate-case -fspec-constr."
+test('T5522', [only_ways(['optasm']), extra_files(['mc03.hs'])], multimod_compile,
+     ['mc03', '-fliberate-case -fspec-constr -v0 +RTS -M1G -RTS'])
+
 test('mc04', normal, compile_and_run, [''])
 test('mc05', normal, compile_and_run, [''])
 test('mc06', normal, compile_and_run, [''])



More information about the ghc-commits mailing list