aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bc.tests27
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index 987461ebb..0690e9c6f 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -107,6 +107,33 @@ if(1) {
99
"
+testing "bc continue in if" \
+ "bc" \
+ "\
+11
+21
+11
+31
+99
+" \
+ "" "\
+i=2
+while(i--) {
+ 11
+ if(i) {
+ 21
+ continue
+ 22
+ } else {
+ 31
+ continue
+ 32
+ }
+ 12
+}
+99
+"
+
tar xJf bc_large.tar.xz
for f in bc*.bc; do