summaryrefslogtreecommitdiff
path: root/testsuite/tests/arityanal/f4.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/arityanal/f4.hs')
-rw-r--r--testsuite/tests/arityanal/f4.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/arityanal/f4.hs b/testsuite/tests/arityanal/f4.hs
new file mode 100644
index 0000000000..29c3e8d4ab
--- /dev/null
+++ b/testsuite/tests/arityanal/f4.hs
@@ -0,0 +1,7 @@
+module F4 where
+
+f4h :: (Int -> Int) -> Int -> Int
+f4h f x = if x==0 then (f x)
+ else f4h f (x-1) -- + (f x)
+f4g = \y->y+1
+f4 = f4h f4g 9 \ No newline at end of file