From bab70abe6bcdd28b829adbe582069dc08d9d1c02 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 11 May 2008 19:03:58 +0000 Subject: users/12848: return, break, continue in always block override try block --- Test/A01grammar.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') 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; } } -- cgit 1.4.1