summaryrefslogtreecommitdiff
path: root/tests/test_conditional.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-11 04:04:13 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-11 04:04:13 -0400
commite89df8aad15c2d9a86f9a5bc04657fded6494f17 (patch)
tree7aef9bdc3aca2d7f5f2044de2206f330dd7ebdea /tests/test_conditional.tnsl
parent94263bdaba6e3761eb58d3f6ebf4708d91f2c042 (diff)
Function call (not working)
Diffstat (limited to 'tests/test_conditional.tnsl')
-rw-r--r--tests/test_conditional.tnsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_conditional.tnsl b/tests/test_conditional.tnsl
new file mode 100644
index 0000000..b82ac75
--- /dev/null
+++ b/tests/test_conditional.tnsl
@@ -0,0 +1,14 @@
+/; main [int]
+
+ /; if (false)
+ return 1
+ ;; else if (1 == 2)
+ return 2
+ ;; else if (true)
+ return 69
+ ;; else
+ return 3
+ ;/
+
+ return 0
+;/