about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-11 19:03:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-11 19:03:58 +0000
commitbab70abe6bcdd28b829adbe582069dc08d9d1c02 (patch)
tree4cf2d8884979dd471d87662b29e732e13bf305c5 /Test/A01grammar.ztst
parent4bed4f9d0f6429399b82a83d8636d1c8b2810436 (diff)
downloadzsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.gz
zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.tar.xz
zsh-bab70abe6bcdd28b829adbe582069dc08d9d1c02.zip
users/12848: return, break, continue in always block override try block
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 93a1ecb8c..f283451ce 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -332,6 +332,14 @@
 >Status after always block is 1.
 ?(eval):3: bad substitution
 
+  fn() { { return } always { echo always 1 }; echo not executed }
+  fn
+  fn() { { echo try 2 } always { return }; echo not executed }
+  fn
+0:Always block interaction with return
+>always 1
+>try 2
+
 # Outputting of structures from the wordcode is distinctly non-trivial,
 # we probably ought to have more like the following...
   fn1() { { echo foo; } }