xref: /aosp_15_r20/external/one-true-awk/testdir/t.getline1 (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott Hughes{ x = $1
2*9a7741deSElliott Hughes  for (i = 1; i <= 3; i++)
3*9a7741deSElliott Hughes	if (getline)
4*9a7741deSElliott Hughes		x = x " " $1
5*9a7741deSElliott Hughes  print x
6*9a7741deSElliott Hughes  x = ""
7*9a7741deSElliott Hughes}
8*9a7741deSElliott HughesEND {
9*9a7741deSElliott Hughes  if (x != "") print x
10*9a7741deSElliott Hughes}
11