aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bc.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index d33f8c90a..edff209bb 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -51,6 +51,11 @@ testing "bc if 0 else if 1" \
"2\n9\n" \
"" "if (0) 1 else if (1) 2; 9"
+testing "bc for(;;)" \
+ "bc" \
+ "2\n3\n2\n9\n" \
+ "" "i=2; for (;;) { 2; if(--i==0) break; 3; }; 9"
+
testing "bc define auto" \
"bc" \
"8\n9\n" \