set test while-1
set prog_output "^$"
do_test while-1.m

set test while-2
set prog_output "4321"
do_test while-2.m

set test while-3
set prog_output "4321"
do_test while-3.m

set test while-4
set prog_output "12"
do_test while-4.m

set test while-5
set prog_output "34"
do_test while-5.m
