summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-19 14:22:37 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-19 14:22:37 (GMT)
commit10372d985ab747b8475387b41d7a8cbdf857e613 (patch)
tree05562337d2bb1336e76c6bc70c52d8db2521542e /tests/dict.test
parent5aee161167696db6b88db2b42a0d8963bb1cda6a (diff)
parent657b49a9d1d82445fd0b53afacf3077ef9d1c1eb (diff)
downloadtcl-10372d985ab747b8475387b41d7a8cbdf857e613.zip
tcl-10372d985ab747b8475387b41d7a8cbdf857e613.tar.gz
tcl-10372d985ab747b8475387b41d7a8cbdf857e613.tar.bz2
Stop segfault due to OBOE in CompileWord() calls in [dict incr] compiler.
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 3658581..1b1fc31 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -1876,6 +1876,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 {}
test dict-24.22 {dict map results (non-compiled)} {