Show that a variable is cursor in --expandArc (#15002)
This commit is contained in:
parent
9fb7467fda
commit
1355b461aa
5 changed files with 23 additions and 23 deletions
|
|
@ -3,19 +3,19 @@ discard """
|
|||
cmd: '''nim c --gc:arc --expandArc:traverse --hint:Performance:off $file'''
|
||||
nimout: '''--expandArc: traverse
|
||||
|
||||
var it = root
|
||||
var it_cursor = root
|
||||
block :tmp:
|
||||
while (
|
||||
not (it == nil)):
|
||||
echo [it.s]
|
||||
it = it.ri
|
||||
var jt = root
|
||||
not (it_cursor == nil)):
|
||||
echo [it_cursor.s]
|
||||
it_cursor = it_cursor.ri
|
||||
var jt_cursor = root
|
||||
block :tmp_1:
|
||||
while (
|
||||
not (jt == nil)):
|
||||
let ri_1 = jt.ri
|
||||
echo [jt.s]
|
||||
jt = ri_1
|
||||
not (jt_cursor == nil)):
|
||||
let ri_1_cursor = jt_cursor.ri
|
||||
echo [jt_cursor.s]
|
||||
jt_cursor = ri_1_cursor
|
||||
-- end of expandArc ------------------------'''
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue