diff options
| author | cgd <cgd@NetBSD.org> | 1993-04-10 15:51:24 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-04-10 15:51:24 +0000 |
| commit | 439d2fb46cfec58a16c4a9856cc00ea4a2ee6de3 (patch) | |
| tree | dd34836a974bf8d23a53a2773f34394576710d12 /gnu/usr.bin/bc/Test/array.b | |
| parent | a3960efdef82d52889d981e42c8e404f99470203 (diff) | |
gnu bc. necessary to compile the distribution
Diffstat (limited to 'gnu/usr.bin/bc/Test/array.b')
| -rw-r--r-- | gnu/usr.bin/bc/Test/array.b | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/usr.bin/bc/Test/array.b b/gnu/usr.bin/bc/Test/array.b new file mode 100644 index 00000000000..a0341ec7d74 --- /dev/null +++ b/gnu/usr.bin/bc/Test/array.b @@ -0,0 +1,14 @@ +"This tests arrays! +" +define p(x,y) { + auto i; + for (i=x; i<y; i++) a[i]; +} + +for (i=0; i<10; i++) a[i] = i; +j = p(0,10); + +for (i=1000; i<1030; i++) a[i] = i; +j = p(1000,1030); +j = p(0,10); + |
