summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fibonacci.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/fibonacci.c b/test/fibonacci.c
new file mode 100644
index 0000000..c241be9
--- /dev/null
+++ b/test/fibonacci.c
@@ -0,0 +1,8 @@
+int fib (int n) {
+ if (n <= 1) return 1;
+ return n * fib(n - 1);
+}
+
+int main (int argc, char** argv) {
+ return fib(argc);
+}