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