From a50576a415a9b5d384a28c9bd4b55a4df2974248 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 16 Dec 2018 19:21:57 +0100 Subject: bc: fold zbc_parse_else() into its only caller While at it, allow newline between "else" and its body Signed-off-by: Denys Vlasenko --- testsuite/bc.tests | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuite') diff --git a/testsuite/bc.tests b/testsuite/bc.tests index 95cc28dad..36baeea89 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests @@ -61,6 +61,11 @@ testing "bc if(cond)" \ "9\n" \ "" "if(0)\n3\n9" +testing "bc if(cond) stmt else" \ + "bc" \ + "4\n9\n" \ + "" "if(0)3 else\n4\n9" + testing "bc while(cond)" \ "bc" \ "8\n7\n6\n5\n4\n3\n2\n1\n9\n" \ -- cgit v1.2.3