summaryrefslogtreecommitdiff
path: root/test/arryref2.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 13:22:00 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 13:22:00 +0300
commit6cc7d587a710606d3fe52222707739c7cc1b8651 (patch)
tree2b6360852d8f966bd83eeb6efd8af90f8e9b83f9 /test/arryref2.awk
parente888f1834b88270590b7e04d64c03c75863e4565 (diff)
downloadgawk-6cc7d587a710606d3fe52222707739c7cc1b8651.tar.gz
Move to gawk-3.1.3.gawk-3.1.3
Diffstat (limited to 'test/arryref2.awk')
-rw-r--r--test/arryref2.awk18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/arryref2.awk b/test/arryref2.awk
new file mode 100644
index 00000000..202a0409
--- /dev/null
+++ b/test/arryref2.awk
@@ -0,0 +1,18 @@
+BEGIN {
+ foo(a)
+
+ for (i in a)
+ print i, a[i]
+}
+
+function foo(b)
+{
+ bar(b)
+ b[2] = "local"
+}
+
+function bar(c)
+{
+ a[3] = "global"
+ c[1] = "local2"
+}