diff options
author | dgp <dgp@users.sourceforge.net> | 2016-03-17 13:31:34 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-03-17 13:31:34 (GMT) |
commit | 53945014f92208d98db43b8f0e003286cfc5b11f (patch) | |
tree | 5f825405342cd6c92c3a98c568dc1474079d7ceb /tests/compile.test | |
parent | ec8985515a1311dba29887ae949182bc480becda (diff) | |
parent | 40526e0d3a5b496eb7566e47ec87a44920ea1ba5 (diff) | |
download | tcl-53945014f92208d98db43b8f0e003286cfc5b11f.zip tcl-53945014f92208d98db43b8f0e003286cfc5b11f.tar.gz tcl-53945014f92208d98db43b8f0e003286cfc5b11f.tar.bz2 |
merge trunk
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 9e722c4..2b9ea51 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} |