xref: /aosp_15_r20/external/one-true-awk/testdir/t.null0 (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott HughesBEGIN { FS = ":" }
2*9a7741deSElliott Hughes{	if (a) print "a", a
3*9a7741deSElliott Hughes	if (b == 0) print "b", b
4*9a7741deSElliott Hughes	if ( c == "0") print "c", c
5*9a7741deSElliott Hughes	if (d == "") print "d", d
6*9a7741deSElliott Hughes	if (e == 1-1) print "e", e
7*9a7741deSElliott Hughes}
8*9a7741deSElliott Hughes$1 == 0	{print "$1 = 0"}
9*9a7741deSElliott Hughes$1 == "0"	{print "$1 = quoted 0"}
10*9a7741deSElliott Hughes$1 == ""	{print "$1 = null string"}
11*9a7741deSElliott Hughes$5 == 0	{print "$5 = 0"}
12*9a7741deSElliott Hughes$5 == "0"	{print "$5 = quoted 0"}
13*9a7741deSElliott Hughes$5 == ""	{print "$5 = null string"}
14*9a7741deSElliott Hughes$1 == $3 {print "$1 = $3"}
15*9a7741deSElliott Hughes$5 == $6 {print "$5 = $6"}
16