summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2026-03-20 17:22:32 -0400
committerKai Gunger <kgunger12@gmail.com>2026-03-20 17:22:32 -0400
commit34a791931c82d0fc0b0be954b7498e474086c5a9 (patch)
tree83f0a86972dccb4e4bb2e7ea8836ec701ff29a8d /tnslc/test.tnsl
parent6fcd9b168c2667c3e757bce7f68377954917224a (diff)
[tnslc] fix bug in scope for getting stack locationsorigin
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index bedadcb..ddc10d1 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -1,5 +1,11 @@
-/; main [int]
- return 0
+/; main (int argc, ~~uint8 argv) [int]
+ int i = 0
+ /; if (len args > 1)
+ i = len args
+ ;; else
+ i = ~args
+ ;/
+ return i
;/