xref: /illumos-gate/usr/src/test/util-tests/tests/awk/syn/arryref3.awk (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1BEGIN {
2	foo(a)
3
4	for (i in a)
5		print i, a[i]
6}
7
8function foo(b)
9{
10	a[1] = "global"
11	b[2] = "local"
12	bar(b)
13}
14
15function bar(c)
16{
17	c = 12
18}
19