diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2003-03-19 22:24:10 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2003-03-19 22:24:10 (GMT) |
commit | be7334acb2cf6bc9263165270b9895ff1487c65e (patch) | |
tree | 84cb20700da4902ac04d31caeea4b7cd5140da17 /tests/compile.test | |
parent | bb7105fe9e61473e34a6dfa06700dbc252afeb19 (diff) | |
download | tcl-be7334acb2cf6bc9263165270b9895ff1487c65e.zip tcl-be7334acb2cf6bc9263165270b9895ff1487c65e.tar.gz tcl-be7334acb2cf6bc9263165270b9895ff1487c65e.tar.bz2 |
* generic/tclCompile.c:
* tests/compile.test: bad command count on TCL_OUT_LINE_COMPILE
[Bug 705406] (Don Porter).
Diffstat (limited to 'tests/compile.test')
-rw-r--r-- | tests/compile.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/compile.test b/tests/compile.test index 6369313..9c7347c 100644 --- a/tests/compile.test +++ b/tests/compile.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: compile.test,v 1.25 2003/03/19 16:51:43 dgp Exp $ +# RCS: @(#) $Id: compile.test,v 1.26 2003/03/19 22:24:15 msofer Exp $ package require tcltest 2 namespace import -force ::tcltest::* @@ -114,6 +114,16 @@ test compile-3.4 {TclCompileCatchCmd: bcc'ed [return] is caught} { } foo } {2} +test compile-3.5 {TclCompileCatchCmd: recover from error, [Bug 705406]} { + proc foo {} { + catch { + if {[a]} { + if b {} + } + } + } + list [catch foo msg] $msg +} {1 {invalid command name "a"}} test compile-4.1 {TclCompileForCmd: command substituted test expression} { set i 0 |