summaryrefslogtreecommitdiff
path: root/tnslc/str_test.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-07-07 15:50:30 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-07-07 15:50:30 -0400
commitceaeb8df4d9bf9b518239ea623d813add5a71072 (patch)
tree7061a06dc67b2832248a36d842b051a408a5a5cd /tnslc/str_test.tnsl
parent34066553843ee869d71f24646eea1bac319225d6 (diff)
Returns inside of complex operations
Diffstat (limited to 'tnslc/str_test.tnsl')
-rw-r--r--tnslc/str_test.tnsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tnslc/str_test.tnsl b/tnslc/str_test.tnsl
new file mode 100644
index 0000000..7875636
--- /dev/null
+++ b/tnslc/str_test.tnsl
@@ -0,0 +1,9 @@
+{}uint8 a = "\n\0\""
+
+/; str_call({}uint str) [int]
+ return len str
+;/
+
+/; main [int]
+ return str_call(~a)
+;/ \ No newline at end of file