summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-05-14 12:10:27 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-05-14 12:10:27 -0400
commit52ec72efcd748473c15fad74ff03cd9d88c38ccd (patch)
treea16d9a982d88c29cf79998eeccbd5516c0264ae7 /tnslc/simple.tnsl
parent89f2b3b4a40749eba388ea998b99381a37bbeb53 (diff)
Fix an issue with tmp vars of ref type
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl
index 29113b7..ea517d4 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -7,7 +7,9 @@
asm "mov r8, rcx"
asm "mov r9, rdx"
+ ~uint8 a = ~str1{0}
+
# return 3
- return argc + len str1
+ return a`
;/