summaryrefslogtreecommitdiff
path: root/compiler/ilxGen/tests/test20.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ilxGen/tests/test20.hs')
-rw-r--r--compiler/ilxGen/tests/test20.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/ilxGen/tests/test20.hs b/compiler/ilxGen/tests/test20.hs
new file mode 100644
index 0000000000..157a16da1d
--- /dev/null
+++ b/compiler/ilxGen/tests/test20.hs
@@ -0,0 +1,9 @@
+
+data N = Z | S N
+
+res Z x y = (# x, y #)
+res (S n) x y = res n x y
+
+(# x, y #) = res (S Z) "no!" "hello world\n"
+
+main = putStr y