Fix repeated REPT nodes in backtraces

This commit is contained in:
Rangi
2025-10-06 16:36:55 -04:00
parent 0c9920d4a6
commit fba0562650
11 changed files with 145 additions and 55 deletions

23
test/asm/rept-trace.asm Normal file
View File

@@ -0,0 +1,23 @@
section "test", rom0
for v1, 4
if v1 == 3
for v2, 3
if v2 == 2
for v3, 2
if v3 == 1
rept 1
macro m
static_assert \1
endm
endr
rept 1
rept 2
m 0
endr
endr
endc
endr
endc
endr
endc
endr