diff options
Diffstat (limited to 'compiler/ilxGen/tests/test6.hs')
-rw-r--r-- | compiler/ilxGen/tests/test6.hs | 8 |
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)) + |