mirror of
https://github.com/gbdev/rgbds.git
synced 2026-01-21 07:51:51 +00:00
Fix repeated REPT nodes in backtraces
This commit is contained in:
23
test/link/rept-trace/a.asm
Normal file
23
test/link/rept-trace/a.asm
Normal 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
|
||||
assert \1
|
||||
endm
|
||||
endr
|
||||
rept 1
|
||||
rept 2
|
||||
m @
|
||||
endr
|
||||
endr
|
||||
endc
|
||||
endr
|
||||
endc
|
||||
endr
|
||||
endc
|
||||
endr
|
||||
17
test/link/rept-trace/out.err
Normal file
17
test/link/rept-trace/out.err
Normal file
@@ -0,0 +1,17 @@
|
||||
error: assert failure
|
||||
at rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::m(10)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::REPT~1(15)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1(14)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2(13)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3(6)
|
||||
<- rept-trace/a.asm::REPT~4(4)
|
||||
<- rept-trace/a.asm(2)
|
||||
error: assert failure
|
||||
at rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::m(10)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1::REPT~2(15)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2::REPT~1(14)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3::REPT~2(13)
|
||||
<- rept-trace/a.asm::REPT~4::REPT~3(6)
|
||||
<- rept-trace/a.asm::REPT~4(4)
|
||||
<- rept-trace/a.asm(2)
|
||||
Linking failed with 2 errors
|
||||
Reference in New Issue
Block a user