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