summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/should_run/2881.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/should_run/2881.hs')
-rw-r--r--testsuite/tests/ghci/should_run/2881.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/should_run/2881.hs b/testsuite/tests/ghci/should_run/2881.hs
new file mode 100644
index 0000000000..94ecfa6a00
--- /dev/null
+++ b/testsuite/tests/ghci/should_run/2881.hs
@@ -0,0 +1,8 @@
+import Data.Word
+fib :: Word -> Word
+fib 0 = 1
+fib 1 = 1
+fib n = l + r
+ where l = fib (n-2); r = fib (n-1)
+
+main = print (fib 20)