aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bc.tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index 093b3950e..95cc28dad 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -56,6 +56,16 @@ testing "bc define with body on next line" \
"8\n9\n" \
"" "define w()\n{ auto z; return 8; }\nw()\n9"
+testing "bc if(cond)<NL>" \
+ "bc" \
+ "9\n" \
+ "" "if(0)\n3\n9"
+
+testing "bc while(cond)<NL>" \
+ "bc" \
+ "8\n7\n6\n5\n4\n3\n2\n1\n9\n" \
+ "" "i=9;while(--i)\ni\n9"
+
tar xJf bc_large.tar.xz
for f in bc*.bc; do