[commit: ghc] master: Failing test case for #13734 (0a754e6)

git at git.haskell.org git at git.haskell.org
Sat May 20 18:10:33 UTC 2017


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

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

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

commit 0a754e607ca40a344240925e99618c9e62c9690b
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sat May 20 14:09:21 2017 -0400

    Failing test case for #13734


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

0a754e607ca40a344240925e99618c9e62c9690b
 testsuite/tests/simplCore/should_run/T13733.hs            | 15 +++++++++++++++
 .../should_run/T13733.stdout}                             |  0
 testsuite/tests/simplCore/should_run/all.T                |  1 +
 3 files changed, 16 insertions(+)

diff --git a/testsuite/tests/simplCore/should_run/T13733.hs b/testsuite/tests/simplCore/should_run/T13733.hs
new file mode 100644
index 0000000..80c7791
--- /dev/null
+++ b/testsuite/tests/simplCore/should_run/T13733.hs
@@ -0,0 +1,15 @@
+module Main where
+
+delayedId :: a -> a
+delayedId x = x
+{-# INLINE [0] delayedId #-}
+
+alwaysTrue :: [Integer]-> Bool
+alwaysTrue xs = xs == delayedId xs
+{-# NOINLINE alwaysTrue #-}
+
+{-# RULES
+    "[Integer] Eq Refl" forall (xs :: [Integer]). xs == xs = True
+#-}
+
+main = putStrLn $ if alwaysTrue undefined then "ok" else "not ok"
diff --git a/testsuite/tests/codeGen/should_run/cgrun052.stdout b/testsuite/tests/simplCore/should_run/T13733.stdout
similarity index 100%
copy from testsuite/tests/codeGen/should_run/cgrun052.stdout
copy to testsuite/tests/simplCore/should_run/T13733.stdout
diff --git a/testsuite/tests/simplCore/should_run/all.T b/testsuite/tests/simplCore/should_run/all.T
index 9317b8b..1ff71d8 100644
--- a/testsuite/tests/simplCore/should_run/all.T
+++ b/testsuite/tests/simplCore/should_run/all.T
@@ -73,3 +73,4 @@ test('T12689a', normal, compile_and_run, [''])
 
 test('T13172', only_ways(['optasm']), compile_and_run, ['-dcore-lint'])
 test('T13227', normal, compile_and_run, [''])
+test('T13733', expect_broken(13733), compile_and_run, [''])



More information about the ghc-commits mailing list