diff options
| author | wiz <wiz@NetBSD.org> | 2003-10-06 15:55:26 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2003-10-06 15:55:26 +0000 |
| commit | 06c09073b324623d2972d20bd326886c2adcdd2a (patch) | |
| tree | 84d0382f9a2e9842906330fb1294414ab6a0832f /gnu/dist/gawk/test/arrayref.awk | |
| parent | b83f0ec8299370bbca9177e5b2e7778fdb67be12 (diff) | |
Initial import of gawk-3.1.3.
Seven releases since the last import, so the ChangeLog is quite big;
please refer to the NEWS file included in the import for details.
Among others, this also addresses PR 23054.
Diffstat (limited to 'gnu/dist/gawk/test/arrayref.awk')
| -rw-r--r-- | gnu/dist/gawk/test/arrayref.awk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/dist/gawk/test/arrayref.awk b/gnu/dist/gawk/test/arrayref.awk new file mode 100644 index 00000000000..144d41a0687 --- /dev/null +++ b/gnu/dist/gawk/test/arrayref.awk @@ -0,0 +1,13 @@ + BEGIN { # foo[10] = 0 # put this line in and it will work + test(foo); print foo[1] + test2(foo2); print foo2[1] + } + + function test(foo) + { + test2(foo) + } + function test2(bar) + { + bar[1] = 1 + } |
