[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / compiler / tests / deSugar / ds002.hs
diff --git a/ghc/compiler/tests/deSugar/ds002.hs b/ghc/compiler/tests/deSugar/ds002.hs
new file mode 100644 (file)
index 0000000..d754636
--- /dev/null
@@ -0,0 +1,16 @@
+--!!! ds002 -- overlapping equations and guards
+--
+-- this tests "overlapping" variables and guards
+
+module Test where
+
+f x = x
+f y = y
+f z = z
+
+g x y z | True = f z
+       | True = f z
+       | True = f z
+g x y z | True = f z
+       | True = f z
+       | True = f z