[commit: ghc] master: Add regression test for #11702 (3f60ce8)

git at git.haskell.org git at git.haskell.org
Mon Mar 14 12:23:26 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3f60ce8751c860a2bd0ddbe87429136a9d97449b/ghc

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

commit 3f60ce8751c860a2bd0ddbe87429136a9d97449b
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Sun Mar 13 21:29:19 2016 +0100

    Add regression test for #11702
    
    Test Plan: Validate
    
    Reviewers: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2002
    
    GHC Trac Issues: #11702


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

3f60ce8751c860a2bd0ddbe87429136a9d97449b
 testsuite/tests/numeric/should_run/T11702.hs                     | 9 +++++++++
 .../should_run/T9844.stdout => numeric/should_run/T11702.stdout} | 0
 testsuite/tests/numeric/should_run/all.T                         | 1 +
 3 files changed, 10 insertions(+)

diff --git a/testsuite/tests/numeric/should_run/T11702.hs b/testsuite/tests/numeric/should_run/T11702.hs
new file mode 100644
index 0000000..0aeb77d
--- /dev/null
+++ b/testsuite/tests/numeric/should_run/T11702.hs
@@ -0,0 +1,9 @@
+module Main where
+
+testfn :: Word -> IO ()
+testfn wseq = do
+  print $ wseq `mod` 1
+
+main = do
+  testfn 5
+  print $ (5 :: Word) `mod` 1
diff --git a/testsuite/tests/deSugar/should_run/T9844.stdout b/testsuite/tests/numeric/should_run/T11702.stdout
similarity index 100%
copy from testsuite/tests/deSugar/should_run/T9844.stdout
copy to testsuite/tests/numeric/should_run/T11702.stdout
diff --git a/testsuite/tests/numeric/should_run/all.T b/testsuite/tests/numeric/should_run/all.T
index 527ce27..515005f 100644
--- a/testsuite/tests/numeric/should_run/all.T
+++ b/testsuite/tests/numeric/should_run/all.T
@@ -66,3 +66,4 @@ test('T9407', normal, compile_and_run, [''])
 test('T9810', normal, compile_and_run, [''])
 test('T10011', normal, compile_and_run, [''])
 test('T10962', omit_ways(['ghci']), compile_and_run, [''])
+test('T11702', expect_broken(11702), compile_and_run, [''])



More information about the ghc-commits mailing list