aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bc.tests31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index 21b26008f..987461ebb 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -76,6 +76,37 @@ testing "bc print 1,2,3" \
76 "123" \ 76 "123" \
77 "" "print 1,2,3" 77 "" "print 1,2,3"
78 78
79testing "bc nested loops and breaks" \
80 "bc" \
81 "\
8211
8321
8431
8522
8612
8799
88" \
89 "" "\
90if(1) {
91 11
92 while(1) {
93 21
94 while(1) {
95 31
96 break
97 32
98 }
99 22
100 break
101 23
102 }
103 12
104} else {
105 88
106}
10799
108"
109
79tar xJf bc_large.tar.xz 110tar xJf bc_large.tar.xz
80 111
81for f in bc*.bc; do 112for f in bc*.bc; do