summaryrefslogtreecommitdiff
path: root/tnslc/dummy.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-12-12 00:52:54 -0500
committerKyle Gunger <kgunger12@gmail.com>2022-12-12 00:52:54 -0500
commit069eb0fc2edf1f40fd1fff6584e430c111471859 (patch)
treedc038d5659105b7cc29622e703e86b6fb1729599 /tnslc/dummy.tnsl
parent65d1112cffbe3a761c96b63c74ce0d704f64fb2d (diff)
Evaluation of numeric literals
Diffstat (limited to 'tnslc/dummy.tnsl')
-rw-r--r--tnslc/dummy.tnsl13
1 files changed, 7 insertions, 6 deletions
diff --git a/tnslc/dummy.tnsl b/tnslc/dummy.tnsl
index 1bfbee9..5421218 100644
--- a/tnslc/dummy.tnsl
+++ b/tnslc/dummy.tnsl
@@ -6,6 +6,13 @@
test a, b
}
+/; main (uint argc, ~~uint8 argv) [int]
+ # ;~void ptr = _alloc(10)
+ # ;_delete(ptr)
+ ;return 1
+;/
+
+
/; _alloc (uint bytes) [~void]
;asm "mov %rax, %rdi"
;asm "mov $0, %r10"
@@ -17,9 +24,3 @@
;asm "mov $0, %r10"
;asm "call free"
;/
-
-/; main (uint argc, ~~uint8 argv) [int]
- # ;~void ptr = _alloc(10)
- # ;_delete(ptr)
- # ;return 0
-;/