summaryrefslogtreecommitdiff
path: root/compiler/ilxGen/tests/test7.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ilxGen/tests/test7.hs')
-rw-r--r--compiler/ilxGen/tests/test7.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/ilxGen/tests/test7.hs b/compiler/ilxGen/tests/test7.hs
new file mode 100644
index 0000000000..c146038052
--- /dev/null
+++ b/compiler/ilxGen/tests/test7.hs
@@ -0,0 +1,8 @@
+data List a = Cons a (List a)
+
+hdL (Cons x y) = x
+tlL (Cons x y) = y
+
+mk f x = f x (mk f x)
+main = putStr (hdL (tlL (mk Cons "hello world!\n")))
+