[commit: ghc] ghc-8.0: Add regression test for #11702 (cd585d6)

git at git.haskell.org git at git.haskell.org
Wed Mar 16 08:40:45 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/cd585d6d7b840d034b93644bdd8efa624cc81714/ghc

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

commit cd585d6d7b840d034b93644bdd8efa624cc81714
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
    
    (cherry picked from commit 3f60ce8751c860a2bd0ddbe87429136a9d97449b)


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

cd585d6d7b840d034b93644bdd8efa624cc81714
 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 7ebdd44..050de91 100644
--- a/testsuite/tests/numeric/should_run/all.T
+++ b/testsuite/tests/numeric/should_run/all.T
@@ -65,3 +65,4 @@ test('CarryOverflow', omit_ways(['ghci']), 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