~vcs-imports/gawk/master

1
2
3
4
5
6
7
8
9
10
# Test NR and FNR for file(s) with records > LONG_MAX
BEGIN {
	NR = 0x7FFFFFFF
}
BEGINFILE {
	FNR = 0x7fffffffffffffff
}
END {
	print NR, NR-0x7FFFFFFF, FNR, FNR-0x7fffffffffffffff
}