Show that a variable is cursor in --expandArc (#15002)

This commit is contained in:
Clyybber 2020-07-17 10:56:17 +02:00 • committed by GitHub
commit 1355b461aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 23 deletions

View file

@ -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 ------------------------'''
"""