diff options
Diffstat (limited to 'testsuite/tests/stranal/should_run/strun004.hs')
-rw-r--r-- | testsuite/tests/stranal/should_run/strun004.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/should_run/strun004.hs b/testsuite/tests/stranal/should_run/strun004.hs new file mode 100644 index 0000000000..ff58f72ce5 --- /dev/null +++ b/testsuite/tests/stranal/should_run/strun004.hs @@ -0,0 +1,10 @@ +module Main where + +f 0 = 0 +f x = x + g (x-1) + +g 0 = 0 +g x = x - f (x-1) + +main = print (f 300) + |