diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-03-20 17:22:32 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-03-20 17:22:32 -0400 |
| commit | 34a791931c82d0fc0b0be954b7498e474086c5a9 (patch) | |
| tree | 83f0a86972dccb4e4bb2e7ea8836ec701ff29a8d /tnslc/test.tnsl | |
| parent | 6fcd9b168c2667c3e757bce7f68377954917224a (diff) | |
[tnslc] fix bug in scope for getting stack locationsorigin
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 10 |
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 ;/ |