diff options
Diffstat (limited to 'test/arryref3.awk')
-rw-r--r-- | test/arryref3.awk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/arryref3.awk b/test/arryref3.awk new file mode 100644 index 0000000..e234ee5 --- /dev/null +++ b/test/arryref3.awk @@ -0,0 +1,18 @@ +BEGIN { + foo(a) + + for (i in a) + print i, a[i] +} + +function foo(b) +{ + a[1] = "global" + b[2] = "local" + bar(b) +} + +function bar(c) +{ + c = 12 +} |