source: trunk/essentials/sys-apps/gawk/test/aryprm8.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 274 bytes
Line 
1BEGIN {
2 f(0, a) # nothing
3 f(1, a)
4}
5function f(i, a) {
6 if (i == 0) return
7 g(a, a)
8 pr(a)
9}
10function g(x, y) {
11 h(y, x, y)
12}
13function h(b, c, d) {
14 b[1] = 1
15 c[1] = 2 # rewrite
16 print b[1], d[1]
17 c[2] = 1
18 b[2] = 2 # should rewrite
19}
20function pr(x) {
21 print x[1], x[2]
22}
Note: See TracBrowser for help on using the repository browser.