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)
commitfbac621bfc03de0d375e4df6b5f1f0cd7b99d0b5 (patch)
treecfdbb08e5f959f29f643d207e6466edcebc494d0 /tests/var.test
parent3cc058aa46554be19c3f7e3226e32fa45952e1c6 (diff)
downloadtcl-fbac621bfc03de0d375e4df6b5f1f0cd7b99d0b5.zip
tcl-fbac621bfc03de0d375e4df6b5f1f0cd7b99d0b5.tar.gz
tcl-fbac621bfc03de0d375e4df6b5f1f0cd7b99d0b5.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}