summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-03-21 21:32:29 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-03-21 21:32:29 (GMT)
commit3b21ae36fc18189a6cc850c1db2dc0e93e7129b6 (patch)
treecbcb9fac8b6662a217fd223f5504c2c2315ed447 /tests/compile.test
parentaddefaba01a0a32c7659cd2ae09bd805957cc800 (diff)
parent349c1fd2676793625cc0037a11d5989b0a591397 (diff)
downloadtcl-bug_f1253530cd.zip
tcl-bug_f1253530cd.tar.gz
tcl-bug_f1253530cd.tar.bz2
Merged trunkbug_f1253530cd
Diffstat (limited to 'tests/compile.test')
-rw-r--r--tests/compile.test11
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}