summaryrefslogtreecommitdiffstats
path: root/tests/var.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-19 18:53:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-19 18:53:01 (GMT)
commit7b3702821be88e66474de1c1b1aa84c381276668 (patch)
treecfdbb08e5f959f29f643d207e6466edcebc494d0 /tests/var.test
parent91ec52b16e7cd903ca196560e5ddb1d5ca1c60a9 (diff)
downloadtcl-7b3702821be88e66474de1c1b1aa84c381276668.zip
tcl-7b3702821be88e66474de1c1b1aa84c381276668.tar.gz
tcl-7b3702821be88e66474de1c1b1aa84c381276668.tar.bz2
Line numbers wrong in compiled [unset].
Diffstat (limited to 'tests/var.test')
-rw-r--r--tests/var.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/var.test b/tests/var.test
index 5939100..6d4be26 100644
--- a/tests/var.test
+++ b/tests/var.test
@@ -862,6 +862,19 @@ test var-20.8 {array set compilation correctness: Bug 3603163} -setup {
}}
array size x
} -result 0
+
+test var-21.0 {PushVarNameWord OBOE in compiled unset} -setup {
+ proc linenumber {} {dict get [info frame -1] line}
+} -body {
+ apply {n {
+ set foo bar
+ unset foo {*}{
+ } [return [incr n -[linenumber]]]
+ }} [linenumber]
+} -cleanup {
+ rename linenumber {}
+} -result 1
+
catch {namespace delete ns}
catch {unset arr}