summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-08-07 04:09:14 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-08-07 04:09:14 -0400
commit85daa32c72485272093804329851a56ca2ef9307 (patch)
tree1f3353fc61b1bf4a40e4e2144e8244a924ae1291 /tnslc/test.tnsl
parent248fe38d3e2d932001a950b554c731f1698727f9 (diff)
[tnslc] Fix indexing post-op, segfault when printing c formatted strings in tokens
Diffstat (limited to 'tnslc/test.tnsl')
-rw-r--r--tnslc/test.tnsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index 691e0fb..265ba70 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -16,15 +16,15 @@ struct Geko {
/; module mod
int i = 0
/; whatev (~uint8 a) [uint8]
- # return a{0}
+ return a{0}
;/
;/
-int i = mod.i * 2 + 1 * 4 - 2
-
/; main [int]
# ~uint8 a = "asdf\0"
#whatev(a)
#whatev("asdf\0")
- #return 0
+ return 0
;/
+
+~uint8 printf = "Unmatched closing delimiter at {line %d, col %d, %s}"