diff options
Diffstat (limited to 'testsuite/tests/stranal/should_compile/fact.hs')
-rw-r--r-- | testsuite/tests/stranal/should_compile/fact.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/should_compile/fact.hs b/testsuite/tests/stranal/should_compile/fact.hs new file mode 100644 index 0000000000..9f23f9021e --- /dev/null +++ b/testsuite/tests/stranal/should_compile/fact.hs @@ -0,0 +1,3 @@ +module Test where +fact :: Int -> Int +fact n = if n==0 then 2 else (fact n) * n |