commit | 52caa007e3f32225b6cd9f899480362c4563b023 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Fri Dec 21 00:35:22 2018 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Fri Dec 21 00:35:22 2018 +0100 |
tree | bb44c017ba5aafc819d5723b60ddb27728bfd1d3 | |
parent | 047154472ac41ddf45ed57d9bc294fbf9057cbad [diff] [blame] |
bc: for(;;) fix from upstream Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/testsuite/bc.tests b/testsuite/bc.tests index d33f8c9..edff209 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests
@@ -51,6 +51,11 @@ "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" \