diff options
author | dgp <dgp@users.sourceforge.net> | 2014-12-03 23:46:51 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-12-03 23:46:51 (GMT) |
commit | 2f3edeea430639acf634ea4b914dbde65df4739c (patch) | |
tree | ac0a41d118498b63c10377280ba4f664903ff7fe /tests | |
parent | 484de8b9879c4344a7f31bf0940aa2eaf943d30f (diff) | |
parent | 0c0be357100d28784d29e88ef2af8e61ffd7aeb1 (diff) | |
download | tcl-2f3edeea430639acf634ea4b914dbde65df4739c.zip tcl-2f3edeea430639acf634ea4b914dbde65df4739c.tar.gz tcl-2f3edeea430639acf634ea4b914dbde65df4739c.tar.bz2 |
[0c043a175] backport fix from trunk.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/compile.test | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/compile.test b/tests/compile.test index 7e9dcda..7646c12 100644 --- a/tests/compile.test +++ b/tests/compile.test @@ -422,14 +422,22 @@ test compile-13.1 {testing underestimate of maxStackSize in list cmd} {exec} { list [catch {exec [interpreter] << $script} msg] $msg } {0 OK} -# Special test for compiling tokens from a copy of the source -# string [Bug #599788] +# Tests compile-14.* for [Bug 599788] [Bug 0c043a175a47da8c2342] test compile-14.1 {testing errors in element name; segfault?} {} { catch {set a([error])} msg1 catch {set bubba([join $abba $jubba]) $vol} msg2 list $msg1 $msg2 } {{wrong # args: should be "error message ?errorInfo? ?errorCode?"} {can't read "abba": no such variable}} +test compile-14.2 {testing element name "$"} -body { + unset -nocomplain a + set a() 1 + set a(1) 2 + set a($) 3 + list [set a()] [set a(1)] [set a($)] [unset a() a(1); lindex [array names a] 0] +} -cleanup {unset a} -result [list 1 2 3 {$}] + + # Tests compile-15.* cover Tcl Bug 633204 test compile-15.1 {proper TCL_RETURN code from [return]} { proc p {} {catch return} |