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