xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/arynasty.awk (revision 8a2b682e57a046b828f37bcde1776f131ef4629f)
1BEGIN {
2	a = 12.153
3#print "-- stroring test[a]" > "/dev/stderr" ; fflush("/dev/stderr")
4	test[a] = "hi"
5#print "-- setting CONVFMT" > "/dev/stderr" ; fflush("/dev/stderr")
6	CONVFMT = "%.0f"
7#print "-- setting a" > "/dev/stderr" ; fflush("/dev/stderr")
8	a = 5
9#stopme()
10#print "-- starting loop" > "/dev/stderr" ; fflush("/dev/stderr")
11	for (i in test) {
12#print("-- i =", i) > "/dev/stderr" ; fflush("/dev/stderr");
13#printf("-- i = <%s>\n", i) > "/dev/stderr" ; fflush("/dev/stderr");
14		printf ("test[%s] = %s\n", i, test[i])
15	}
16}
17