summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-19 14:06:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-19 14:06:46 (GMT)
commit071c731c5e45080a89c03c7ae74ec6acf4df59c2 (patch)
treeb6ccdf3dfa15de333b21a9a81e48bebe7e78c674 /tests
parent635d8c961aa06ec17403483a0ff3c0a3d524f3d1 (diff)
downloadtcl-071c731c5e45080a89c03c7ae74ec6acf4df59c2.zip
tcl-071c731c5e45080a89c03c7ae74ec6acf4df59c2.tar.gz
tcl-071c731c5e45080a89c03c7ae74ec6acf4df59c2.tar.bz2
Stop segfault due to OBOE in CompileWord() calls in [dict incr] compiler.
Diffstat (limited to 'tests')
-rw-r--r--tests/dict.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 83f1ca7..fec000d 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -1254,6 +1254,11 @@ test dict-23.4 {CompileWord OBOE} {
} [return [incr n -[linenumber]]] val
}} [linenumber]
} 1
+test dict-23.5 {CompileWord OBOE} {
+ # segfault when buggy
+ apply {{} {tcl::dict::incr foo \
+ [format bar]}}
+} {bar 1}
rename linenumber {}