summaryrefslogtreecommitdiff
path: root/tests/test_funcall_2.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-11 05:49:19 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-11 05:49:19 -0400
commit74babfe81b7a1acb84d83735e089ac95481ceb74 (patch)
treeddb578d9943f507d889e8ff9d64f2127a51c792b /tests/test_funcall_2.tnsl
parente89df8aad15c2d9a86f9a5bc04657fded6494f17 (diff)
Slightly better function calling
Diffstat (limited to 'tests/test_funcall_2.tnsl')
-rw-r--r--tests/test_funcall_2.tnsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_funcall_2.tnsl b/tests/test_funcall_2.tnsl
new file mode 100644
index 0000000..3bf746c
--- /dev/null
+++ b/tests/test_funcall_2.tnsl
@@ -0,0 +1,12 @@
+/; ret_a [int]
+ return 9
+;/
+
+/; ret_b (int i, j) [int]
+ return i + j
+;/
+
+/; main [int]
+ int i = ret_a()
+ return ret_b(60, i)
+;/