[commit: ghc] ghc-8.0: Add failing testcase for #12433 (094f3c6)

git at git.haskell.org git at git.haskell.org
Thu Sep 15 17:50:36 UTC 2016


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

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

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

commit 094f3c691fef0bd85f711fa4ec3f9b99fee70225
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
    
    (cherry picked from commit dcc49044e8ac5b905955f99b042449635eb47e64)


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

094f3c691fef0bd85f711fa4ec3f9b99fee70225
 testsuite/tests/codeGen/should_run/T12433.hs                | 13 +++++++++++++
 .../T4262.stdout => codeGen/should_run/T12433.stdout}       |  0
 testsuite/tests/codeGen/should_run/all.T                    |  1 +
 3 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/concurrent/should_run/T4262.stdout b/testsuite/tests/codeGen/should_run/T12433.stdout
similarity index 100%
copy from testsuite/tests/concurrent/should_run/T4262.stdout
copy to testsuite/tests/codeGen/should_run/T12433.stdout
diff --git a/testsuite/tests/codeGen/should_run/all.T b/testsuite/tests/codeGen/should_run/all.T
index a390a70..36babf2 100644
--- a/testsuite/tests/codeGen/should_run/all.T
+++ b/testsuite/tests/codeGen/should_run/all.T
@@ -143,3 +143,4 @@ test('T10521b', normal, compile_and_run, [''])
 test('T10870', when(wordsize(32), skip), compile_and_run, [''])
 test('PopCnt', omit_ways(['ghci']), multi_compile_and_run,
                  ['PopCnt', [('PopCnt_cmm.cmm', '')], ''])
+test('T12433', expect_broken(12433), compile_and_run, [''])



More information about the ghc-commits mailing list