xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/t.fun2 (revision b531f6d16eb39863e7bbc34773fb7ef7a282a0a2)
1function f(n) {
2	while (n < 10) {
3		print n
4		n = n + 1
5	}
6}
7function g(n) {
8	print "g", n
9}
10{ f($1); g($1); print n }
11