diff options
author | dgp <dgp@users.sourceforge.net> | 2016-03-17 13:19:44 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-03-17 13:19:44 (GMT) |
commit | e5ba57087aacab34b233d49adc8244d3d0a00d61 (patch) | |
tree | 8279d93d0ad3263adc96b13cbc12ad087caa318e /tests/compile.test | |
parent | bf462d250e5858f485f7093e407db767d1f861be (diff) | |
parent | abdb62c1942d36d9a145b5c1cfb572839b1a9a25 (diff) | |
download | tcl-e5ba57087aacab34b233d49adc8244d3d0a00d61.zip tcl-e5ba57087aacab34b233d49adc8244d3d0a00d61.tar.gz tcl-e5ba57087aacab34b233d49adc8244d3d0a00d61.tar.bz2 |
merge 8.6 bug fixes
Diffstat (limited to 'tests/compile.test')
-rw-r--r-- | tests/compile.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/compile.test b/tests/compile.test index 6ef697c..6aa7fd1 100644 --- a/tests/compile.test +++ b/tests/compile.test @@ -224,6 +224,17 @@ test compile-5.2 {TclCompileForeachCmd: non-local variables} { foreach-test set ::foo } 3 +test compile-5.3 {TclCompileForeachCmd: [Bug b9b2079e6d]} -setup { + proc demo {} { + foreach x y { + if 1 break else + } + } +} -body { + demo +} -cleanup { + rename demo {} +} -returnCodes error -result {wrong # args: no script following "else" argument} test compile-6.1 {TclCompileSetCmd: global scalar names with ::s} -setup { catch {unset x} |