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