summaryrefslogtreecommitdiff
path: root/tnslc/dummy.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/dummy.tnsl')
-rw-r--r--tnslc/dummy.tnsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tnslc/dummy.tnsl b/tnslc/dummy.tnsl
index eda351a..741a0e0 100644
--- a/tnslc/dummy.tnsl
+++ b/tnslc/dummy.tnsl
@@ -6,13 +6,17 @@
test a, b
}
+/; add (int a, b) [int]
+ ;return a + b - 9 - 30
+;/
+
/; main (uint argc, ~~uint8 argv) [int]
# Fix for main func
;asm "mov %rdi, %r8"
;asm "mov %rsi, %r9"
# ;~void ptr = _alloc(10)
# ;_delete(ptr)
- ;return 1
+ # ;return add(argc, 2)
;/