summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
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
;/