xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/hex.awk (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
1# Test program from Paul Eggert, eggert@cs.ucla.edu, Jan. 14, 2005
2
3BEGIN {
4	e = "1(e)"
5	ex = "3e2(ex)"
6	x = "6e5(x)"
7
8	print e+0, x+0
9	print 0x
10	print 0e+x
11	print 0ex
12	print 010e2
13	print 0e9.3
14}
15
16# Expected results:
17# 1 600000
18# 06e5(x)
19# 0600001
20# 03e2(ex)
21# 1000
22# 00.3
23