aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test1.in
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-12 01:39:06 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-02-12 01:39:06 -0800
commit29ddb68da428804148a0c6f44229cf1848bebf8c (patch)
tree7f304efea5fb102d04b47d59410ab74fa1317918 /tests/test1.in
parentdd49399e45558b1ee494a01628b7cbfbcf0919ff (diff)
Tests and fix to allow return to work correctly within if statements. Closes #1297.
Diffstat (limited to 'tests/test1.in')
-rw-r--r--tests/test1.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test1.in b/tests/test1.in
index 7f60a4da..529baea1 100644
--- a/tests/test1.in
+++ b/tests/test1.in
@@ -121,3 +121,12 @@ echo -e Catch your breath
echo -e 'abc\x21def'
echo -e 'abc\x211def'
+
+function always_fails
+ if true
+ return 1
+ end
+end
+
+always_fails ; echo $status
+