summaryrefslogtreecommitdiff
path: root/tests/fuzzing/bc_inputs1/array.bc
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-08-09 20:32:55 +0000
committerStefan Eßer <se@FreeBSD.org>2021-08-09 20:32:55 +0000
commit2f57ecae4b98e76e5d675563785a7e6c59c868c4 (patch)
treee6d1dbd4c570423814482d1b26473c205050c0a5 /tests/fuzzing/bc_inputs1/array.bc
parentb46baf82c7ba1648082cdcf26f7f4570d919350e (diff)
Diffstat (limited to 'tests/fuzzing/bc_inputs1/array.bc')
-rwxr-xr-xtests/fuzzing/bc_inputs1/array.bc60
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/fuzzing/bc_inputs1/array.bc b/tests/fuzzing/bc_inputs1/array.bc
deleted file mode 100755
index dac232804914..000000000000
--- a/tests/fuzzing/bc_inputs1/array.bc
+++ /dev/null
@@ -1,60 +0,0 @@
-#! /usr/bin/bc -q
-
-define z(a[]) {
- for (i = 0; i < l; ++i) {
- a[i]
- }
-}
-
-define x(a[]) {
-
- # Test for separate vars and arrays.
- auto a
-
- for (a = 0; a < l; ++a) {
- a[a] = -a
- }
-
- z(a[])
-}
-
-define g(x[], y[]) {
- return x[0] - y[0]
-}
-
-define h(y[], x[]) {
- return g(x[], y[])
-}
-
-define m(*x[], *y[]) {
- return x[0] / y[0]
-}
-
-define n(*y[], *x[]) {
- return m(x[], y[])
-}
-
-for (i = 0; i < 101; ++i) {
- a[i] = i
-}
-
-a[104] = 204
-
-l = length(a[])
-
-for (i = 0; i <= l; ++i) {
- a[i]
-}
-
-z(a[])
-x(a[])
-z(a[])
-l
-
-x[0] = 5
-y[0] = 4
-
-h(x[], y[])
-n(x[], y[])
-
-halt