[commit: ghc] master: testsuite: Add test for #12855 (5bce207)

git at git.haskell.org git at git.haskell.org
Mon Nov 21 19:22:16 UTC 2016


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

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

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

commit 5bce207b61f105b3797d2be00dd1df2a28cbfab6
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon Nov 21 13:42:15 2016 -0500

    testsuite: Add test for #12855
    
    Test Plan: Validate
    
    Reviewers: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2731
    
    GHC Trac Issues: #12855


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

5bce207b61f105b3797d2be00dd1df2a28cbfab6
 testsuite/tests/codeGen/should_run/T12855.hs | 9 +++++++++
 testsuite/tests/codeGen/should_run/all.T     | 1 +
 2 files changed, 10 insertions(+)

diff --git a/testsuite/tests/codeGen/should_run/T12855.hs b/testsuite/tests/codeGen/should_run/T12855.hs
new file mode 100644
index 0000000..6cc9f2f
--- /dev/null
+++ b/testsuite/tests/codeGen/should_run/T12855.hs
@@ -0,0 +1,9 @@
+{- # OPTIONS_GHC -Wall -Werror #-}
+module Main (main) where
+
+import qualified Data.ByteString as S
+import qualified Data.ByteString.Char8 as S8
+
+main :: IO ()
+main = (S8.concat (map S.singleton (S.unpack (S8.pack "<foo>"))) == S8.empty) `seq` return ()
+
diff --git a/testsuite/tests/codeGen/should_run/all.T b/testsuite/tests/codeGen/should_run/all.T
index 4e68448..8d58222 100644
--- a/testsuite/tests/codeGen/should_run/all.T
+++ b/testsuite/tests/codeGen/should_run/all.T
@@ -147,3 +147,4 @@ test('PopCnt', omit_ways(['ghci']), multi_compile_and_run,
 test('T12059', normal, compile_and_run, [''])
 test('T12433', normal, compile_and_run, [''])
 test('T12757', normal, compile_and_run, [''])
+test('T12855', normal, compile_and_run, [''])



More information about the ghc-commits mailing list