[commit: ghc] master: Add failing testcase for #12433 (dcc4904)

git at git.haskell.org git at git.haskell.org
Thu Sep 8 15:12:04 UTC 2016


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

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

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

commit dcc49044e8ac5b905955f99b042449635eb47e64
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon Sep 5 19:19:10 2016 -0400

    Add failing testcase for #12433
    
    Test Plan: Validate
    
    Reviewers: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2517
    
    GHC Trac Issues: #11433


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

dcc49044e8ac5b905955f99b042449635eb47e64
 testsuite/tests/codeGen/should_run/T12433.hs | 13 +++++++++++++
 testsuite/tests/codeGen/should_run/all.T     |  1 +
 2 files changed, 14 insertions(+)

diff --git a/testsuite/tests/codeGen/should_run/T12433.hs b/testsuite/tests/codeGen/should_run/T12433.hs
new file mode 100644
index 0000000..f9e64a6
--- /dev/null
+++ b/testsuite/tests/codeGen/should_run/T12433.hs
@@ -0,0 +1,13 @@
+f :: Int -> IO ()
+f p = case p of
+  0 -> return ()
+  1 -> return ()
+  2 -> return ()
+  3 -> return ()
+  4 -> return ()
+  10 -> return ()
+  11 -> return ()
+  _ -> print p
+{-# NOINLINE f #-}
+
+main = f 8
diff --git a/testsuite/tests/codeGen/should_run/all.T b/testsuite/tests/codeGen/should_run/all.T
index 42ec7d3..ee8772b 100644
--- a/testsuite/tests/codeGen/should_run/all.T
+++ b/testsuite/tests/codeGen/should_run/all.T
@@ -143,3 +143,4 @@ test('T10870', when(wordsize(32), skip), compile_and_run, [''])
 test('PopCnt', omit_ways(['ghci']), multi_compile_and_run,
                  ['PopCnt', [('PopCnt_cmm.cmm', '')], ''])
 test('T12059', normal, compile_and_run, [''])
+test('T12433', expect_broken(12433), compile_and_run, [''])



More information about the ghc-commits mailing list