summaryrefslogtreecommitdiff
path: root/testsuite/tests/arityanal/f0.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/arityanal/f0.hs')
-rw-r--r--testsuite/tests/arityanal/f0.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/arityanal/f0.hs b/testsuite/tests/arityanal/f0.hs
new file mode 100644
index 0000000000..f2b7794b99
--- /dev/null
+++ b/testsuite/tests/arityanal/f0.hs
@@ -0,0 +1,6 @@
+module F0 where
+
+f0 :: Int -> Int -> Int -> Int
+f0 x y = if (x>0) then let v = x + y
+ in \z -> v+z
+ else \z-> 1 \ No newline at end of file