summaryrefslogtreecommitdiff
path: root/test/typeof3.awk
blob: 2f864f45117a276b412922bf64509c3f2d13a480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
BEGIN {
	x = @/xx/
	print typeof(x)
	print x
}

# this set may not really be needed for the test
BEGIN {
	x = 4
	print typeof(@/xxx/)
	print typeof(3)
	print x
}

BEGIN {
	print typeof(x)
	print typeof(a[1])
	a[1][2]	# this used to fatal, it no longer does
}