diff options
Diffstat (limited to 'tnslc/dummy.tnsl')
-rw-r--r-- | tnslc/dummy.tnsl | 13 |
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 -;/ |