xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/arynasty.awk (revision 1fa2a66491e7d8ae0be84e7da4da8e812480c710)
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