summaryrefslogtreecommitdiff
path: root/test/tailrecurse.awk
blob: b287d1685120d49b1ca13460c05ea1062fcf881b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
BEGIN {
	abc(2)
}


function abc(c, A, B)
{
	print "abc(" c ", " length(A) ")"
	if (! c--) {
		return 
	}
	B[""]
	print length(B)
	return abc(c, B)
}