xref: /aosp_15_r20/external/one-true-awk/testdir/t.fun2 (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott Hughesfunction f(n) {
2*9a7741deSElliott Hughes	while (n < 10) {
3*9a7741deSElliott Hughes		print n
4*9a7741deSElliott Hughes		n = n + 1
5*9a7741deSElliott Hughes	}
6*9a7741deSElliott Hughes}
7*9a7741deSElliott Hughesfunction g(n) {
8*9a7741deSElliott Hughes	print "g", n
9*9a7741deSElliott Hughes}
10*9a7741deSElliott Hughes{ f($1); g($1); print n }
11