diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-19 15:57:38 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-19 15:57:38 (GMT) |
commit | ca6f2ab2df7b8a97fdf2352dea3552713bcb88e0 (patch) | |
tree | 5ca0d8a6e02c3d315bedc65a7807d52625146c78 /tests | |
parent | 100b2b2e05bfa69635582926388fe5b9adc6baa3 (diff) | |
parent | 77946f661583330fa93c84272c3cb2d06ee1ec9d (diff) | |
download | tcl-ca6f2ab2df7b8a97fdf2352dea3552713bcb88e0.zip tcl-ca6f2ab2df7b8a97fdf2352dea3552713bcb88e0.tar.gz tcl-ca6f2ab2df7b8a97fdf2352dea3552713bcb88e0.tar.bz2 |
Line numbers wrong in compiled [upvar].
Diffstat (limited to 'tests')
-rw-r--r-- | tests/upvar.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/upvar.test b/tests/upvar.test index e2c9ffd..de98486 100644 --- a/tests/upvar.test +++ b/tests/upvar.test @@ -414,6 +414,17 @@ test upvar-9.7 {Tcl_UpVar procedure} testupvar { } {1234} catch {unset a} +test upvar-10.1 {CompileWord OBOE} -setup { + proc linenumber {} {dict get [info frame -1] line} +} -body { + apply {n { + upvar 1 {*}{ + } [return [incr n -[linenumber]]] x + }} [linenumber] +} -cleanup { + rename linenumber {} +} -result 1 + # # Tests for 'namespace upvar'. As the implementation is essentially the same as # for 'upvar', we only test that the variables are linked correctly, i.e., we |