[commit: ghc] master: Failing test case for #12076. (5f1557e)

git at git.haskell.org git at git.haskell.org
Wed May 18 20:00:20 UTC 2016


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

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

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

commit 5f1557eea2c1a5cf09321d9dc01070b6c068e2fa
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Mon May 16 21:05:24 2016 -0700

    Failing test case for #12076.
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>
    
    Test Plan: validate
    
    Reviewers: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2229
    
    GHC Trac Issues: #12076


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

5f1557eea2c1a5cf09321d9dc01070b6c068e2fa
 testsuite/tests/simplCore/should_compile/T12076.hs  |  2 ++
 testsuite/tests/simplCore/should_compile/T12076a.hs | 15 +++++++++++++++
 testsuite/tests/simplCore/should_compile/all.T      |  2 ++
 3 files changed, 19 insertions(+)

diff --git a/testsuite/tests/simplCore/should_compile/T12076.hs b/testsuite/tests/simplCore/should_compile/T12076.hs
new file mode 100644
index 0000000..8b35039
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T12076.hs
@@ -0,0 +1,2 @@
+import T12076a
+main = f `seq` return ()
diff --git a/testsuite/tests/simplCore/should_compile/T12076a.hs b/testsuite/tests/simplCore/should_compile/T12076a.hs
new file mode 100644
index 0000000..2e5acc9
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T12076a.hs
@@ -0,0 +1,15 @@
+{-# OPTIONS_GHC -O0 #-}
+module T12076a(f) where
+
+import GHC.Exts
+
+{-# NOINLINE z #-}
+z = ()
+
+f :: () -> ()
+f _ = let x = lazy z
+      in g x x
+
+{-# NOINLINE g #-}
+g :: () -> () -> ()
+g _ _ = ()
diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T
index 0e03b16..b1b7d64 100644
--- a/testsuite/tests/simplCore/should_compile/all.T
+++ b/testsuite/tests/simplCore/should_compile/all.T
@@ -236,3 +236,5 @@ test('T3990',
      normal,
      run_command,
      ['$MAKE -s --no-print-directory T3990'])
+
+test('T12076', [expect_broken(12076), extra_clean(['T12076a.hi', 'T12076a.o'])], multimod_compile, ['T12076', '-v0'])



More information about the ghc-commits mailing list