summaryrefslogtreecommitdiff
path: root/tests/projects/pascal/console_with_c/src/foo.c
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-04 00:58:57 +0800
committerruki <[email protected]>2021-09-04 00:58:57 +0800
commite13271050f95518e9451a334cad4b99dd0ac0e5c (patch)
tree81578b98e1cfcfb0c5b189502ce48952388d964d /tests/projects/pascal/console_with_c/src/foo.c
parentc4b3c9836293e77fcfc87b3e8f788cc974b1e59a (diff)
add more pascal tests
Diffstat (limited to 'tests/projects/pascal/console_with_c/src/foo.c')
-rw-r--r--tests/projects/pascal/console_with_c/src/foo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/projects/pascal/console_with_c/src/foo.c b/tests/projects/pascal/console_with_c/src/foo.c
new file mode 100644
index 000000000..66ca7cfb4
--- /dev/null
+++ b/tests/projects/pascal/console_with_c/src/foo.c
@@ -0,0 +1,7 @@
+#include <stdint.h>
+
+extern int64_t fib(int64_t n)
+{
+ return n > 1 ? fib(n - 1) + fib(n - 2) : 1;
+}
+