diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-21 00:35:22 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-21 00:35:22 +0100 |
commit | 52caa007e3f32225b6cd9f899480362c4563b023 (patch) | |
tree | bb44c017ba5aafc819d5723b60ddb27728bfd1d3 /testsuite/bc.tests | |
parent | 047154472ac41ddf45ed57d9bc294fbf9057cbad (diff) |
bc: for(;;) fix from upstream
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bc.tests')
-rwxr-xr-x | testsuite/bc.tests | 5 |
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" \ |