aboutsummaryrefslogtreecommitdiff
path: root/tests/bc/scripts/parse_04.bc
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2025-09-11 14:07:46 +0000
committerStefan Eßer <se@FreeBSD.org>2025-09-11 14:07:46 +0000
commit682da5a0fdb2c38ecc3951047a882471d62aa1d1 (patch)
tree9315c84201e10a5b4cec2eda91146cac4e1c904d /tests/bc/scripts/parse_04.bc
parent5a7f1dde93a4c681a5a4246ddabc562a7f7ce14d (diff)
Diffstat (limited to 'tests/bc/scripts/parse_04.bc')
-rw-r--r--tests/bc/scripts/parse_04.bc19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bc/scripts/parse_04.bc b/tests/bc/scripts/parse_04.bc
new file mode 100644
index 000000000000..6671dc3093e6
--- /dev/null
+++ b/tests/bc/scripts/parse_04.bc
@@ -0,0 +1,19 @@
+#! /usr/bin/bc -q
+
+b = 4
+
+obase = 10
+print "ibase = A; ibase = ", b, "\n"
+print "\qibase = \q\n"
+b
+obase = b
+for (i = 0; i <= 4096; ++i) {
+ i
+ print "0.", i, "\n"
+ print ".", i, "\n"
+ print "1.", i, "\n"
+ print i, ".", "\n"
+ print i, ".", i, "\n"
+}
+
+halt