[project @ 1998-08-07 15:22:02 by simonm]
authorsimonm <unknown>
Fri, 7 Aug 1998 15:22:03 +0000 (15:22 +0000)
committersimonm <unknown>
Fri, 7 Aug 1998 15:22:03 +0000 (15:22 +0000)
add regression test for bug in mkDupableAlt.

ghc/tests/simplCore/should_compile/simpl004.hs [new file with mode: 0644]
ghc/tests/simplCore/should_compile/simpl004.stderr [new file with mode: 0644]

diff --git a/ghc/tests/simplCore/should_compile/simpl004.hs b/ghc/tests/simplCore/should_compile/simpl004.hs
new file mode 100644 (file)
index 0000000..0008ae1
--- /dev/null
@@ -0,0 +1,18 @@
+{-# OPTIONS -fglasgow-exts #-}
+
+module ShouldCompile where
+
+import Ix
+import GlaExts
+
+
+f ixs@(_, ix_end) frozen# =
+ let
+  n# = 
+   case (
+        if null (range ixs)
+         then 0
+         else 1
+        ) of { I# x -> x }
+ in
+ (# frozen#, False #)
diff --git a/ghc/tests/simplCore/should_compile/simpl004.stderr b/ghc/tests/simplCore/should_compile/simpl004.stderr
new file mode 100644 (file)
index 0000000..e69de29