xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/ofmta.awk (revision 8a2b682e57a046b828f37bcde1776f131ef4629f)
1# Date: Thu, 14 Apr 2011 08:18:55 -0500
2# From: j.eh@mchsi.com
3# To: arnold@skeeve.com
4# Subject: CONVFMT test for the test suite
5# Message-ID: <20110414131855.GA1801@apollo>
6#
7# Hi,
8#
9# Please consider adding this to the test suite. 3.1.8 segfaults
10# with this.
11#
12# Thanks,
13#
14# John
15#
16#
17BEGIN {
18	i=1.2345
19	i=3+i
20	a[i]="hi"
21	OFMT="%.1f"
22	print i
23	for (x in a) print x, a[x]
24	print a[i]
25	print "--------"
26	CONVFMT=OFMT="%.3f"
27	print i
28	for (x in a) print x, a[x]
29	print a[i]
30}
31