aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bc.tests5
-rw-r--r--testsuite/bc_misc1.bc4
2 files changed, 6 insertions, 3 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index 7795183a7..0a8222be6 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -103,6 +103,11 @@ testing "bc for (;;) {break}" \
"2\n9\n" \
"" "for (;;) {2;break}; 9"
+testing "bc define {return}" \
+ "bc" \
+ "0\n9\n" \
+ "" "define w() {return}\nw();9"
+
testing "bc define auto" \
"bc" \
"8\n9\n" \
diff --git a/testsuite/bc_misc1.bc b/testsuite/bc_misc1.bc
index 7e9d96604..f666d701a 100644
--- a/testsuite/bc_misc1.bc
+++ b/testsuite/bc_misc1.bc
@@ -4,9 +4,7 @@ define x(x) {
define y() {
return;
}
-define z() {
- return ();
-}
+define z() {return}
scale = 0
x=2
x[0]=3