[commit: ghc] ghc-8.0: Failing test case for #12076. (df1cac9)
git at git.haskell.org
git at git.haskell.org
Sun Aug 7 11:59:10 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/df1cac90c03456dc3783267a220085b3cc2b860a/ghc
>---------------------------------------------------------------
commit df1cac90c03456dc3783267a220085b3cc2b860a
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
(cherry picked from commit 5f1557eea2c1a5cf09321d9dc01070b6c068e2fa)
>---------------------------------------------------------------
df1cac90c03456dc3783267a220085b3cc2b860a
testsuite/tests/simplCore/should_compile/T12076.hs | 2 ++
testsuite/tests/simplCore/should_compile/T12076a.hs | 15 +++++++++++++++
testsuite/tests/simplCore/should_compile/all.T | 1 +
3 files changed, 18 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 36b94c7..ae41d58 100644
--- a/testsuite/tests/simplCore/should_compile/all.T
+++ b/testsuite/tests/simplCore/should_compile/all.T
@@ -233,3 +233,4 @@ test('T11562', normal, compile, ['-O2'])
test('T11644', normal, compile, ['-O2'])
test('T11742', normal, compile, ['-O2'])
test('T12212', normal, compile, ['-O'])
+test('T12076', [expect_broken(12076), extra_clean(['T12076a.hi', 'T12076a.o'])], multimod_compile, ['T12076', '-v0'])
More information about the ghc-commits
mailing list